From: Tsuda Kageyu Date: Mon, 31 Aug 2015 07:28:24 +0000 (+0900) Subject: Revert "Add and fix some comments in ConfigureChecks.cmake." X-Git-Tag: v1.10~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70f8fb1bae6b8244403cbc9a70ed5adeb8ead8b7;p=taglib Revert "Add and fix some comments in ConfigureChecks.cmake." This reverts commit fa6f33e552aa1d11a88f6432a54a34aa1d2dfa97. --- diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index f0a45f5c..88980ea1 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -164,7 +164,7 @@ if(NOT HAVE_GCC_BYTESWAP) endif() endif() -# Check if your compiler supports some safer version of vsprintf. +# Determine whether your compiler supports some safer version of vsprintf. check_cxx_source_compiles(" #include @@ -190,15 +190,17 @@ if(NOT HAVE_VSNPRINTF) " HAVE_VSPRINTF_S) endif() -# Check if zlib is installed. +# Check for libz using the cmake supplied FindZLIB.cmake if(NOT ZLIB_SOURCE) find_package(ZLIB) - set(HAVE_ZLIB ZLIB_FOUND) + if(ZLIB_FOUND) + set(HAVE_ZLIB 1) + else() + set(HAVE_ZLIB 0) + endif() endif() -# Check if CppUnit is installed. - if(BUILD_TESTS) find_package(CppUnit) if(NOT CppUnit_FOUND)