We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f243663 commit d073ff2Copy full SHA for d073ff2
src/CMakeLists.txt
@@ -122,11 +122,17 @@ target_link_libraries(uchmviewer
122
)
123
124
#
125
-# NEED_BZIP2_ARCHIVE is set by the vcpkg portfile.cmake file. If set, we need to pick up the bzip2
126
-# archive as libzip will have been built as an archive not a .so/.dylib
+# IS_VCPKG_BUILD is set by the vcpkg portfile.cmake file. If set, we need to pick up the
+# archive files for:
127
+# bzip2
128
+# zlib
129
+# as libzip will have been built as an archive not a .so/.dylib
130
-if (NEED_BZIP2_ARCHIVE)
- target_link_libraries(uchmviewer BZip2::BZip2)
131
+if (IS_VCPKG_BUILD)
132
+ target_link_libraries(uchmviewer
133
+ BZip2::BZip2
134
+ ZLIB::ZLIB
135
+ )
136
endif ()
137
138
target_link_libraries(uchmviewer i18n)
0 commit comments