diff options
author | Chuck Atkins <chuck.atkins@kitware.com> | 2014-08-30 20:51:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-02 14:34:47 (GMT) |
commit | c16d8c7f77d39415d542c195568064a24560979f (patch) | |
tree | db035f5b228fb50f7b61f662337a9440e8c5a0a5 | |
parent | 3919fc66e1bf9d417fd1bcf60a3681ac31f125fe (diff) | |
download | CMake-c16d8c7f77d39415d542c195568064a24560979f.zip CMake-c16d8c7f77d39415d542c195568064a24560979f.tar.gz CMake-c16d8c7f77d39415d542c195568064a24560979f.tar.bz2 |
liblzma: Added a missing config check for _Bool
This fixes a current build problem for liblzma on Solaris 10, SPARC,
and the Solaris Studio compiler.
-rw-r--r-- | Utilities/cmliblzma/CMakeLists.txt | 6 |
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) |