diff --git a/CMakeLists.txt b/CMakeLists.txt index d5e61f4a..41e41a75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -365,7 +365,7 @@ if(MINGW) set(CMAKE_RC_COMPILER_INIT windres) enable_language(RC) set(CMAKE_RC_COMPILE_OBJECT - " --target=${rc_target} -i -o ") + " -O coff --target=${rc_target} -i -o ") endmacro() if( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i386" @@ -412,10 +412,6 @@ foreach(source ${cxx-sources}) list(APPEND sources ${CMAKE_CURRENT_SOURCE_DIR}/src/${source}) endforeach() -foreach(source ${rc-sources}) - list(APPEND sources ${CMAKE_CURRENT_BINARY_DIR}/${source}) -endforeach() - foreach(source ${rc-sources}) list(APPEND sources ${CMAKE_CURRENT_BINARY_DIR}/${source}) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/${source}.in ${CMAKE_CURRENT_BINARY_DIR}/${source})