Skip to content

Commit

Permalink
Merge pull request #740 from Daft-Freak/patch-3
Browse files Browse the repository at this point in the history
Prepend target name to generated metadata.cpp
  • Loading branch information
Gadgetoid authored Jan 6, 2022
2 parents f0b3aa5 + ceee604 commit 6b935b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 32blit-sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const char *metadata_category = \"\${METADATA_CATEGORY}\";"
METADATA_CONTENT ESCAPE_QUOTES
)

file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/_metadata.cpp CONTENT "${METADATA_CONTENT}")
file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}_metadata.cpp CONTENT "${METADATA_CONTENT}")

target_sources(${TARGET} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/_metadata.cpp)
target_sources(${TARGET} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/${TARGET}_metadata.cpp)
endfunction()

0 comments on commit 6b935b9

Please sign in to comment.