diff options
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 ) |