]> granicus.if.org Git - taglib/commitdiff
Add and fix some comments in ConfigureChecks.cmake.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Wed, 26 Aug 2015 06:05:34 +0000 (15:05 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Wed, 26 Aug 2015 06:05:34 +0000 (15:05 +0900)
ConfigureChecks.cmake

index 88980ea13126390b501dff130110ac1e2dad2566..f0a45f5c10870e4e1905c0eb60055e67d9e893a4 100644 (file)
@@ -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)