diff options
author | Tsuda Kageyu <tsuda.kageyu@gmail.com> | 2015-08-26 15:05:34 +0900 |
---|---|---|
committer | Tsuda Kageyu <tsuda.kageyu@gmail.com> | 2015-08-26 15:05:34 +0900 |
commit | fa6f33e552aa1d11a88f6432a54a34aa1d2dfa97 (patch) | |
tree | cf565637c79dce1cf943acc53fa42dfde81247ca | |
parent | 021c53900225efe4adbbc8593c2f5c51aa4331f3 (diff) |
Add and fix some comments in ConfigureChecks.cmake.
-rw-r--r-- | ConfigureChecks.cmake | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 88980ea1..f0a45f5c 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -164,7 +164,7 @@ if(NOT HAVE_GCC_BYTESWAP) endif() endif() -# Determine whether your compiler supports some safer version of vsprintf. +# Check if your compiler supports some safer version of vsprintf. check_cxx_source_compiles(" #include <cstdio> @@ -190,17 +190,15 @@ if(NOT HAVE_VSNPRINTF) " HAVE_VSPRINTF_S) endif() -# Check for libz using the cmake supplied FindZLIB.cmake +# Check if zlib is installed. if(NOT ZLIB_SOURCE) find_package(ZLIB) - if(ZLIB_FOUND) - set(HAVE_ZLIB 1) - else() - set(HAVE_ZLIB 0) - endif() + set(HAVE_ZLIB ZLIB_FOUND) endif() +# Check if CppUnit is installed. + if(BUILD_TESTS) find_package(CppUnit) if(NOT CppUnit_FOUND) |