mirror of https://github.com/madler/zlib
Update CMakeLists.txt
split CMAKE_RC_FLAGS instead of CMAKE_RC_COMPILER
This commit is contained in:
parent
d54f7f8d96
commit
43b635f228
|
@ -139,10 +139,10 @@ if(MINGW)
|
||||||
if(NOT CMAKE_RC_COMPILER)
|
if(NOT CMAKE_RC_COMPILER)
|
||||||
set(CMAKE_RC_COMPILER windres.exe)
|
set(CMAKE_RC_COMPILER windres.exe)
|
||||||
endif()
|
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
|
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
|
-D GCC_WINDRES
|
||||||
-I ${CMAKE_CURRENT_SOURCE_DIR}
|
-I ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
-I ${CMAKE_CURRENT_BINARY_DIR}
|
-I ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
|
Loading…
Reference in New Issue