Skip to content

Commit

Permalink
CMake: fix windows BBA resource embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko authored and whitequark committed Jan 23, 2025
1 parent e120932 commit d673d04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/BBAsm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,12 @@ function(add_bba_compile_command)

if (arg_MODE STREQUAL "resource")

file(WRITE ${arg_OUTPUT}.rc
"${arg_OUTPUT} RCDATA \"${arg_OUTPUT}\"")
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${arg_OUTPUT_NAME}.rc
"${arg_OUTPUT} RCDATA \"${CMAKE_CURRENT_BINARY_DIR}/${arg_OUTPUT_NAME}\"")

target_sources(
${arg_TARGET} PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/${arg_OUTPUT_NAME}
${CMAKE_CURRENT_BINARY_DIR}/${arg_OUTPUT_NAME}.rc
)

Expand Down

0 comments on commit d673d04

Please sign in to comment.