[PATCH] print zlib library instead of include directory
Rolf Eike Beer
eike at sf-mail.de
Thu Apr 7 12:22:24 EDT 2011
Before:
-- Found ZLIB: /usr/include (found version "1.2.3")
After:
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.3")
---
Modules/FindZLIB.cmake | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Modules/FindZLIB.cmake b/Modules/FindZLIB.cmake
index 2062a7e..77f9fda 100644
--- a/Modules/FindZLIB.cmake
+++ b/Modules/FindZLIB.cmake
@@ -67,7 +67,7 @@ ENDIF()
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZLIB REQUIRED_VARS ZLIB_INCLUDE_DIR ZLIB_LIBRARY
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(ZLIB REQUIRED_VARS ZLIB_LIBRARY ZLIB_INCLUDE_DIR
VERSION_VAR ZLIB_VERSION_STRING)
IF(ZLIB_FOUND)
--
1.7.3.2
--nextPart2730154.PmcRsF52Ju--
--nextPart2476240.bbrQzUJneK
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
iEYEABECAAYFAk2d5WAACgkQXKSJPmm5/E6EdQCdE8PN4tAi8HR4hRhKJxPGpnnC
+l8An2cdcnlDa9GuMHXXp4yhqFqjqcie
=5s26
-----END PGP SIGNATURE-----
--nextPart2476240.bbrQzUJneK--
More information about the cmake-developers
mailing list