diff options
Diffstat (limited to 'lib/compat/CMakeLists.txt')
-rw-r--r-- | lib/compat/CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/compat/CMakeLists.txt b/lib/compat/CMakeLists.txt new file mode 100644 index 0000000..5fd6db4 --- /dev/null +++ b/lib/compat/CMakeLists.txt @@ -0,0 +1,12 @@ +include(CheckFunctionExists) +include(CheckIncludeFile) + +check_include_file(dirent.h HAVE_DIRENT_H) + +check_function_exists(glob HAVE_GLOB) +if(NOT HAVE_GLOB) + set(SOURCES "${SOURCES}" + "${CMAKE_CURRENT_SOURCE_DIR}/glob.c" + "${CMAKE_SOURCE_DIR}/include/compat/glob.h" + PARENT_SCOPE) +endif() |