We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e7618a6 + 509598d commit f7c053eCopy full SHA for f7c053e
cmake/zlib_external.cmake
@@ -14,8 +14,10 @@ FetchContent_Declare(zlib
14
USES_TERMINAL_DOWNLOAD TRUE)
15
FetchContent_MakeAvailable(zlib)
16
17
+add_library(ZLIB::ZLIB ALIAS zlib)
18
+
19
# Fix Windows zlib dll names from "zlibd1.dll" to "zlib.dll":
-if(WIN32)
20
+if(WIN32 AND BUILD_SHARED_LIBS)
21
set_target_properties(zlib PROPERTIES OUTPUT_NAME "zlib")
22
set_target_properties(zlib PROPERTIES DEBUG_POSTFIX "")
23
set_target_properties(zlib PROPERTIES SUFFIX ".dll")
0 commit comments