From afcdf78be591b5f0408b4ebb29afc43802bfee1c Mon Sep 17 00:00:00 2001 From: Przemek <4788832+przemek83@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:53:16 +0100 Subject: [PATCH] Build zlib always with release mode. Aplicable to MSVC. --- ZlibConfig.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZlibConfig.cmake b/ZlibConfig.cmake index 00d5e6a..45f7c3a 100644 --- a/ZlibConfig.cmake +++ b/ZlibConfig.cmake @@ -1,8 +1,8 @@ configure_file(CMakeLists.txt.zlib zlib/CMakeLists.txt) execute_process(COMMAND ${CMAKE_COMMAND} -G ${CMAKE_GENERATOR} . WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/zlib) -execute_process(COMMAND ${CMAKE_COMMAND} --build . +execute_process(COMMAND ${CMAKE_COMMAND} --build . --config Release WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/zlib ) set(ZLIB_ROOT ${CMAKE_CURRENT_BINARY_DIR}/zlib/install) -include_directories( ${CMAKE_CURRENT_BINARY_DIR}/zlib/install/include) \ No newline at end of file +include_directories( ${CMAKE_CURRENT_BINARY_DIR}/zlib/install/include)