mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 20:23:41 +08:00
95dad17807
* Update casclib to 2021-11-16 * Update CI baseline * Add patch for shared Windows builds * Update CI baseline * Fix find_package * Update CI baseline Co-authored-by: chausner <chausner@users.noreply.github.com>
21 lines
435 B
Diff
21 lines
435 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -51,8 +51,15 @@ set(SRC_FILES
|
|
src/CascRootFile_WoW.cpp
|
|
)
|
|
|
|
+if(WIN32)
|
|
+ set(SRC_FILES ${SRC_FILES}
|
|
+ src/DllMain.c
|
|
+ src/DllMain.def
|
|
+ )
|
|
+endif()
|
|
+
|
|
set(LINK_LIBS)
|
|
-find_package(ZLIB)
|
|
+find_package(ZLIB REQUIRED)
|
|
if (ZLIB_FOUND)
|
|
set(LINK_LIBS ${LINK_LIBS} ZLIB::ZLIB)
|
|
add_definitions(-DCASC_USE_SYSTEM_ZLIB)
|