diff options
author | Slávek Banko <[email protected]> | 2023-01-19 05:28:18 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2023-01-19 05:34:48 +0100 |
commit | b1a3fa8599e2fc84906cd9877f3efca3ce3238ce (patch) | |
tree | 4d28d39d6772ca8dbc8d0b03858ac211185fc88e /ConfigureChecks.cmake | |
parent | fcd778d34cebbaf4f26fd13b355f82f56d46692f (diff) | |
download | tdeio-locate-b1a3fa8599e2fc84906cd9877f3efca3ce3238ce.tar.gz tdeio-locate-b1a3fa8599e2fc84906cd9877f3efca3ce3238ce.zip |
Cleanup CMake rules:r14.1.0
+ Add the option for building with hidden visibility.
+ Use the result of long files support tests instead of hard-coded definition.
+ Add the presence test TDEIO::UDS_HIDDEN.
+ Remove unnecessary tests.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 3128330..23277d3 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -29,11 +29,18 @@ if( WITH_GCC_VISIBILITY ) endif( WITH_GCC_VISIBILITY ) -check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY ) -check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY ) - -check_include_file( stdint.h HAVE_STDINT_H ) -check_include_file( systems.h HAVE_SYSTEMS_H ) -check_include_file( linux/inotify.h HAVE_INOTIFY ) - -check_function_exists( statvfs HAVE_STATVFS ) +##### check for TDEIO::UDS_HIDDEN + +tde_save_and_set( CMAKE_REQUIRED_INCLUDES ${TQT_INCLUDE_DIRS} ${TDE_INCLUDE_DIR} ) +tde_save_and_set( CMAKE_REQUIRED_LIBRARIES tdeio-shared ) +check_cxx_source_compiles( " + #include <tdeio/global.h> + + int main() + { + int val = TDEIO::UDS_HIDDEN; + return 1; + }" + HAVE_UDS_HIDDEN +) +tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES ) |