Skip to content

Commit 99da827

Browse files
authored
Making configuration files trigger configure (#3620)
1 parent 7e7861e commit 99da827

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/config_assembler.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,14 @@ function(fprime__internal_process_configuration_source_set MODULE_NAME SOURCE_SE
8383
fprime_cmake_debug_message("[config] Overriding ${DESTINATION} with ${SOURCE}")
8484
file(COPY_FILE "${SOURCE}" "${DESTINATION}" ONLY_IF_DIFFERENT)
8585
list(APPEND NEW_DEPENDS "${DESTINATION_MODULE}")
86+
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${SOURCE}")
8687
# If the source is new, move it to the binary directory
8788
else()
8889
fprime_cmake_debug_message("[config] Initial config ${DESTINATION} from ${SOURCE}")
8990
list(APPEND RETURNED_SOURCES "${DESTINATION}")
9091
file(MAKE_DIRECTORY "${DESTINATION_DIRECTORY}")
9192
file(COPY_FILE "${SOURCE}" "${DESTINATION}" ONLY_IF_DIFFERENT)
93+
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${SOURCE}")
9294
endif()
9395
endforeach()
9496
set(PROCESSED_SOURCES "${RETURNED_SOURCES}" PARENT_SCOPE)

0 commit comments

Comments
 (0)