summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-02 14:59:52 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-09-02 14:59:52 (GMT)
commit68a1d429b12b3e8dadcac1aee32da06943892963 (patch)
treea31a3bcf06e7c8e129372cf0773b3d305560b71a
parent3338b2c3c86d67a0624c3c5911a3cd70a8ae3925 (diff)
parentc16d8c7f77d39415d542c195568064a24560979f (diff)
downloadCMake-68a1d429b12b3e8dadcac1aee32da06943892963.zip
CMake-68a1d429b12b3e8dadcac1aee32da06943892963.tar.gz
CMake-68a1d429b12b3e8dadcac1aee32da06943892963.tar.bz2
Merge topic 'fix-liblzma-build-on-solaris-suncc'
c16d8c7f liblzma: Added a missing config check for _Bool
-rw-r--r--Utilities/cmliblzma/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Utilities/cmliblzma/CMakeLists.txt b/Utilities/cmliblzma/CMakeLists.txt
index 856e41e..23549c5 100644
--- a/Utilities/cmliblzma/CMakeLists.txt
+++ b/Utilities/cmliblzma/CMakeLists.txt
@@ -26,11 +26,15 @@ CHECK_INCLUDE_FILE(byteswap.h HAVE_BYTESWAP_H)
CHECK_INCLUDE_FILE(inttypes.h HAVE_INTTYPES_H)
CHECK_INCLUDE_FILE(limits.h HAVE_LIMITS_H)
CHECK_INCLUDE_FILE(memory.h HAVE_MEMORY_H)
-CHECK_INCLUDE_FILE(stdbool.h HAVE_STDBOOL_H)
CHECK_INCLUDE_FILE(strings.h HAVE_STRINGS_H)
CHECK_INCLUDE_FILE(string.h HAVE_STRING_H)
CHECK_INCLUDE_FILE(sys/sysctl.h HAVE_SYS_SYSCTL_H)
+CHECK_INCLUDE_FILE(stdbool.h HAVE_STDBOOL_H)
+if(NOT HAVE_STDBOOL_H)
+ CHECK_TYPE_SIZE(_Bool _BOOL)
+endif()
+
CHECK_C_SOURCE_COMPILES (
"#include<byteswap.h>\nint main(void){bswap_16(0);return 0;}"
HAVE_BSWAP_16)