CrucibleCheckRuntimeCapabilities.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
include_guard(GLOBAL) include(CheckCXXSourceCompiles) function(crucible_check_runtime_capabilities PREFIX) crucible_check_dirent_d_namlen("${PREFIX}") endfunction() function(crucible_check_dirent_d_namlen PREFIX) check_cxx_source_compiles( " #include <dirent.h> int main() { struct ::dirent entry; entry.d_namlen = 0; return 0; } " "${PREFIX}_DIRENT_D_NAMLEN") endfunction()