aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSfan5 <sfan5@live.de>2014-03-11 17:48:34 +0100
committerSfan5 <sfan5@live.de>2014-03-11 17:48:34 +0100
commit859287b02710723fcce5a35741a5afb242184679 (patch)
tree7611e670eb303da7ca674f62cf4a83bed440bb78 /src
parent5ce3f8f7b773e915e82f7a4616743dd820f51df4 (diff)
downloadminetest-859287b02710723fcce5a35741a5afb242184679.tar.gz
minetest-859287b02710723fcce5a35741a5afb242184679.tar.bz2
minetest-859287b02710723fcce5a35741a5afb242184679.zip
Fix generating winresource.o with build dir != source dir
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 149fe4a44..24bbe7e1d 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}