File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ set (DAEMON_SOURCE_GENERATOR "${CMAKE_CURRENT_LIST_FILE} " )
2+ get_filename_component (current_list_dir "${CMAKE_CURRENT_LIST_FILE} " DIRECTORY )
3+ set (DAEMON_TEXT_EMBEDDER "${current_list_dir} /cmake/EmbedText.cmake" )
4+
15set (DAEMON_GENERATED_SUBDIR "GeneratedSource" )
26set (DAEMON_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR} /${DAEMON_GENERATED_SUBDIR} " )
37
@@ -65,6 +69,7 @@ macro(daemon_embed_files basename slug format targetname)
6569 set (embed_${kind} _src_file "${DAEMON_EMBEDDED_DIR} /${embed_${kind} _basename}" )
6670 set (embed_${kind} _file "${DAEMON_EMBEDDED_SUBDIR} /${embed_${kind} _basename}" )
6771 set (embed_${kind} _text "${DAEMON_GENERATED_HEADER} " )
72+ set_property (SOURCE "${embed_${kind} _src_file}" APPEND PROPERTY OBJECT_DEPENDS "${DAEMON_SOURCE_GENERATOR} " )
6873 set_property (TARGET "${targetname} " APPEND PROPERTY SOURCES "${embed_${kind} _src_file}" )
6974 endforeach ()
7075
@@ -95,8 +100,11 @@ macro(daemon_embed_files basename slug format targetname)
95100 "-DOUTPUT_FILE=${outpath} "
96101 "-DFILE_FORMAT=${format} "
97102 "-DVARIABLE_NAME=${filename_symbol} "
98- -P "${CMAKE_CURRENT_SOURCE_DIR} /cmake/EmbedText.cmake "
103+ -P "${DAEMON_TEXT_EMBEDDER} "
99104 MAIN_DEPENDENCY ${inpath}
105+ DEPENDS
106+ "${DAEMON_FILE_EMBEDDER} "
107+ "${DAEMON_SOURCE_GENERATOR} "
100108 )
101109
102110 set_property (TARGET "${targetname} " APPEND PROPERTY SOURCES "${outpath} " )
You can’t perform that action at this time.
0 commit comments