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)