summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/CMakeLists.txt
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-21 05:02:56 (GMT)
committerBrad King <brad.king@kitware.com>2022-09-22 14:20:30 (GMT)
commit2be5a7de4ea987649dfc1ac669928fecf2613046 (patch)
tree07a80293018d221034857320e90d43745a183814 /Utilities/cmlibarchive/CMakeLists.txt
parent14b94f9bf2e8ada7508ae0a248f376746c18d29c (diff)
downloadCMake-2be5a7de4ea987649dfc1ac669928fecf2613046.zip
CMake-2be5a7de4ea987649dfc1ac669928fecf2613046.tar.gz
CMake-2be5a7de4ea987649dfc1ac669928fecf2613046.tar.bz2
Build: Use imported target `ZLIB::ZLIB` instead of variables
Diffstat (limited to 'Utilities/cmlibarchive/CMakeLists.txt')
-rw-r--r--Utilities/cmlibarchive/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/CMakeLists.txt b/Utilities/cmlibarchive/CMakeLists.txt
index eea472f..b38e653 100644
--- a/Utilities/cmlibarchive/CMakeLists.txt
+++ b/Utilities/cmlibarchive/CMakeLists.txt
@@ -442,6 +442,8 @@ SET(ADDITIONAL_LIBS "")
#
IF(ENABLE_ZLIB)
FIND_PACKAGE(ZLIB)
+ SET(ZLIB_INCLUDE_DIR "")
+ SET(ZLIB_LIBRARIES ZLIB::ZLIB)
ELSE()
SET(ZLIB_FOUND FALSE) # Override cached value
ENDIF()