Skip to content

Commit

Permalink
Explicitely add version target to dependency list
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc committed Apr 18, 2024
1 parent 95e2ec9 commit bf49c69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 5 additions & 4 deletions cmake/autocoder/fpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,6 @@ function(fpp_setup_autocode AC_INPUT_FILES)
# Add in dictionary generation
if (GENERATED_DICT)
set(FPRIME_CURRENT_DICTIONARY_FILE_JSON "${GENERATED_DICT}" CACHE INTERNAL "" FORCE)
message(STATUS "[DEBUG] Dictionary file: ${FPRIME_CURRENT_DICTIONARY_FILE_JSON}")
message(STATUS "[DEBUG] Install prefix : ${CMAKE_INSTALL_PREFIX}")
message(STATUS "[DEBUG] CMake bin dir: ${CMAKE_CURRENT_BINARY_DIR}")
set(LIBRARY_FLAG)
set(FPRIME_PROJECT_VERSION_FILE "${CMAKE_BINARY_DIR}/versions/version.project")
set(FPRIME_FRAMEWORK_VERSION_FILE "${CMAKE_BINARY_DIR}/versions/version.framework")
Expand All @@ -257,7 +254,11 @@ function(fpp_setup_autocode AC_INPUT_FILES)
"--frameworkVersionFile" "${FPRIME_FRAMEWORK_VERSION_FILE}"
"--libraryVersionFile" "${FPRIME_LIBRARIES_VERSION_FILE}"
${IMPORTS} ${AC_INPUT_FILES}
DEPENDS ${FILE_DEPENDENCIES} ${MODULE_DEPENDENCIES} ${FPRIME_PROJECT_VERSION_FILE} ${FPRIME_FRAMEWORK_VERSION_FILE} ${FPRIME_LIBRARIES_VERSION_FILE}
DEPENDS ${FILE_DEPENDENCIES} ${MODULE_DEPENDENCIES}
${FPRIME_PROJECT_VERSION_FILE}
${FPRIME_FRAMEWORK_VERSION_FILE}
${FPRIME_LIBRARIES_VERSION_FILE}
version
)
endif()
set(AUTOCODER_GENERATED ${GENERATED_AI} ${GENERATED_CPP} ${GENERATED_DICT})
Expand Down
5 changes: 1 addition & 4 deletions cmake/autocoder/scripts/fpp_to_dict_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,7 @@ def main():
]
print(cmd_args)

return subprocess.call(
args=cmd_args
)

return subprocess.call(args=cmd_args)


if __name__ == "__main__":
Expand Down

0 comments on commit bf49c69

Please sign in to comment.