From: Sfan5 Date: Tue, 11 Mar 2014 16:48:34 +0000 (+0100) Subject: Fix generating winresource.o with build dir != source dir X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=859287b02710723fcce5a35741a5afb242184679;p=zefram%2Fminetest%2Fminetest_engine.git Fix generating winresource.o with build dir != source dir --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 149fe4a4..24bbe7e1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -393,7 +393,7 @@ if(WIN32) set(CMAKE_RC_COMPILER "windres.exe") endif() ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/winresource_rc.o - COMMAND ${CMAKE_RC_COMPILER} -I${CMAKE_CURRENT_SOURCE_DIR} + COMMAND ${CMAKE_RC_COMPILER} -I${CMAKE_CURRENT_SOURCE_DIR} -I${CMAKE_CURRENT_BINARY_DIR} -i${WINRESOURCE_FILE} -o ${CMAKE_CURRENT_BINARY_DIR}/winresource_rc.o WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}