Skip to content

Commit 2f232bf

Browse files
committed
✨ Add SOURCES to string catalog target
Problem: - The target for the string catalog files depends on the generated files, but it is difficult for calling code to recover those dependencies. Solution: - Add the generated files as sources so that calling code can look at the `SOURCES` property.
1 parent 5688323 commit 2f232bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmake/string_catalog.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ function(gen_str_catalog)
9090
endif()
9191
if(SC_OUTPUTS_TARGET)
9292
add_custom_target(
93-
${SC_OUTPUTS_TARGET} DEPENDS ${SC_OUTPUT_CPP} ${SC_OUTPUT_XML}
94-
${SC_OUTPUT_JSON})
93+
${SC_OUTPUTS_TARGET}
94+
DEPENDS ${SC_OUTPUT_CPP} ${SC_OUTPUT_XML} ${SC_OUTPUT_JSON}
95+
SOURCES ${SC_OUTPUT_CPP} ${SC_OUTPUT_XML} ${SC_OUTPUT_JSON})
9596
endif()
9697
endfunction()

0 commit comments

Comments
 (0)