summaryrefslogtreecommitdiffstats
path: root/Modules/FindZLIB.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-21 12:56:56 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-21 12:56:56 (GMT)
commit4bb83514147fef6f96635a1e7940ddf568fde228 (patch)
tree2a24be52c118f4f91716537b66cd4207cbb37834 /Modules/FindZLIB.cmake
parentcd1f1cb544267911829ac777214474f5ce3491f1 (diff)
downloadCMake-4bb83514147fef6f96635a1e7940ddf568fde228.zip
CMake-4bb83514147fef6f96635a1e7940ddf568fde228.tar.gz
CMake-4bb83514147fef6f96635a1e7940ddf568fde228.tar.bz2
FindZLIB: Do not mark unused variable as advanced
We no longer define the ZLIB_LIBRARY cache entry, so we should not mark it as advanced either. We only use this variable when someone else defines it in order to remain compatible with older versions of this module, but we never create the entry ourselves anymore.
Diffstat (limited to 'Modules/FindZLIB.cmake')
-rw-r--r--Modules/FindZLIB.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindZLIB.cmake b/Modules/FindZLIB.cmake
index a57f450..0b36d6f 100644
--- a/Modules/FindZLIB.cmake
+++ b/Modules/FindZLIB.cmake
@@ -96,7 +96,7 @@ endif()
unset(ZLIB_NAMES)
unset(ZLIB_NAMES_DEBUG)
-mark_as_advanced(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
+mark_as_advanced(ZLIB_INCLUDE_DIR)
if(ZLIB_INCLUDE_DIR AND EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h")
file(STRINGS "${ZLIB_INCLUDE_DIR}/zlib.h" ZLIB_H REGEX "^#define ZLIB_VERSION \"[^\"]*\"$")