diff --git a/CMakeLists.txt b/CMakeLists.txt index b9343e6..d2ec22b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,10 +139,10 @@ if(MINGW) if(NOT CMAKE_RC_COMPILER) set(CMAKE_RC_COMPILER windres.exe) endif() - string(REPLACE " " ";" ZLIB_RC_COMPILER_LIST ${CMAKE_RC_COMPILER}) + string(REPLACE " " ";" ZLIB_CMAKE_RC_FLAGS_LIST ${CMAKE_RC_FLAGS}) add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/zlib1rc.obj - COMMAND ${ZLIB_RC_COMPILER_LIST} + COMMAND ${CMAKE_RC_COMPILER} ${ZLIB_CMAKE_RC_FLAGS_LIST} -D GCC_WINDRES -I ${CMAKE_CURRENT_SOURCE_DIR} -I ${CMAKE_CURRENT_BINARY_DIR}