Skip to content

Commit

Permalink
Fix missing fpp_depend build. Fixes: #2576 (#2631)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeStarch authored Mar 28, 2024
1 parent 558ad47 commit ff16e18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmake/target/fpp_depend.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ function(fpp_depend_add_module_target MODULE TARGET SOURCES DEPENDENCIES)
${FPP_SOURCES}
DEPENDS
fpp_locs
"${FPRIME_BINARY_DIR}/locs.fpp"
${FPP_SOURCES}
)
add_custom_target("${TARGET}_${MODULE}" DEPENDS ${OUTPUT_FILES}
Expand Down
4 changes: 2 additions & 2 deletions cmake/target/fpp_locs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set(FPP_LOCATE_DEFS_HELPER "${PYTHON}" "${CMAKE_CURRENT_LIST_DIR}/tools/redirect
function(fpp_locs_add_global_target TARGET)
set(FPP_CONFIGS "${FPRIME_FRAMEWORK_PATH}/Fpp/ToCpp.fpp")
add_custom_command(
OUTPUT "${FPRIME_BINARY_DIR}/locs.fpp"
OUTPUT "${CMAKE_BINARY_DIR}/locs.fpp"
COMMAND
"${FPP_LOCATE_DEFS_HELPER}"
"${CMAKE_BINARY_DIR}/locs.fpp"
Expand All @@ -31,7 +31,7 @@ function(fpp_locs_add_global_target TARGET)
COMMAND_EXPAND_LISTS
)
add_custom_target(
"${TARGET}" DEPENDS "${FPRIME_BINARY_DIR}/locs.fpp"
"${TARGET}" DEPENDS "${CMAKE_BINARY_DIR}/locs.fpp"
COMMAND "${CMAKE_COMMAND}" -E copy_if_different
"${CMAKE_BINARY_DIR}/locs.fpp"
"${FPRIME_BINARY_DIR}/locs.fpp"
Expand Down

0 comments on commit ff16e18

Please sign in to comment.