mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 15:12:23 +01:00
Fix generating winresource.o with build dir != source dir
This commit is contained in:
parent
5ce3f8f7b7
commit
859287b027
@ -393,7 +393,7 @@ if(WIN32)
|
|||||||
set(CMAKE_RC_COMPILER "windres.exe")
|
set(CMAKE_RC_COMPILER "windres.exe")
|
||||||
endif()
|
endif()
|
||||||
ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/winresource_rc.o
|
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}
|
-i${WINRESOURCE_FILE}
|
||||||
-o ${CMAKE_CURRENT_BINARY_DIR}/winresource_rc.o
|
-o ${CMAKE_CURRENT_BINARY_DIR}/winresource_rc.o
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user