If you do FIND_PACKAGE(ZLIB)
you currently get the include directory printed out (usually /usr/include) which isn't very helpful IMHO. Attached patch changes this so the library is shown. Eike
>From ea681ea84eb35d24952626b53ccf595cbc4e7ca4 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer <[email protected]> Date: Thu, 7 Apr 2011 18:22:24 +0200 Subject: [PATCH] print zlib library instead of include directory 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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
