Commit 28a7bb8b authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

attempt to fix error in rc call

parent 37b1efb9
...@@ -186,7 +186,7 @@ FUNCTION(EMBED_VERSION_INFO target) ...@@ -186,7 +186,7 @@ FUNCTION(EMBED_VERSION_INFO target)
GET_FILENAME_COMPONENT(ORIGINALFILENAME ${target_location} NAME) GET_FILENAME_COMPONENT(ORIGINALFILENAME ${target_location} NAME)
# Directory where we have resouce script and compiled .res file # Directory where we have resouce script and compiled .res file
SET(RES_DIR ${CMAKE_CURRENT_BINARY_DIR}/version_resources) SET(RES_DIR ${CMAKE_BINARY_DIR}/version_resources)
# Create resource script (.rc) # Create resource script (.rc)
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/cmake/versioninfo.rc.in CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/cmake/versioninfo.rc.in
...@@ -205,9 +205,8 @@ FUNCTION(EMBED_VERSION_INFO target) ...@@ -205,9 +205,8 @@ FUNCTION(EMBED_VERSION_INFO target)
IF(RUN_RC) IF(RUN_RC)
# Run resource compiler # Run resource compiler
EXECUTE_PROCESS( EXECUTE_PROCESS(
COMMAND ${CMAKE_RC_COMPILER} /nologo /fo ${target}_versioninfo.res COMMAND ${CMAKE_RC_COMPILER} ${target}_versioninfo.rc
${target}_versioninfo.rc WORKING_DIRECTORY ${RES_DIR} OUTPUT_QUIET
WORKING_DIRECTORY ${RES_DIR}
) )
ENDIF() ENDIF()
TARGET_LINK_LIBRARIES(${target} ${RES_DIR}/${target}_versioninfo.res) TARGET_LINK_LIBRARIES(${target} ${RES_DIR}/${target}_versioninfo.res)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment