CMake: fix windows BBA resource embedding

This commit is contained in:
Miodrag Milanovic 2025-01-23 12:00:13 +01:00 committed by Catherine
parent e12093201a
commit d673d04ff3

View File

@ -138,11 +138,12 @@ function(add_bba_compile_command)
if (arg_MODE STREQUAL "resource") if (arg_MODE STREQUAL "resource")
file(WRITE ${arg_OUTPUT}.rc file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${arg_OUTPUT_NAME}.rc
"${arg_OUTPUT} RCDATA \"${arg_OUTPUT}\"") "${arg_OUTPUT} RCDATA \"${CMAKE_CURRENT_BINARY_DIR}/${arg_OUTPUT_NAME}\"")
target_sources( target_sources(
${arg_TARGET} PUBLIC ${arg_TARGET} PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/${arg_OUTPUT_NAME}
${CMAKE_CURRENT_BINARY_DIR}/${arg_OUTPUT_NAME}.rc ${CMAKE_CURRENT_BINARY_DIR}/${arg_OUTPUT_NAME}.rc
) )