diff options
Diffstat (limited to 'build_files/cmake')
-rw-r--r-- | build_files/cmake/macros.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index efa258aa9dc..4a4c0fe6d2d 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -441,6 +441,15 @@ macro(TEST_SSE_SUPPORT unset(CMAKE_REQUIRED_FLAGS) endmacro() +macro(TEST_STDBOOL_SUPPORT) + # This program will compile correctly if and only if + # this C compiler supports C99 stdbool. + check_c_source_runs(" + #include <stdbool.h> + int main(void) { return (int)false; }" + HAVE_STDBOOL_H) +endmacro() + # when we have warnings as errors applied globally this # needs to be removed for some external libs which we dont maintain. |