Skip to content

Commit

Permalink
Prefix ev-cli targets with PROJECT_NAME
Browse files Browse the repository at this point in the history
In some cases this prevents the target from being added multiple times

Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
  • Loading branch information
hikinggrass committed Jun 24, 2024
1 parent 3213f4f commit caa4221
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmake/ev-cli.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
macro(setup_ev_cli)
add_custom_target(ev-cli)
add_custom_target(${PROJECT_NAME}_ev-cli)
if(${EV_CLI})
message(FATAL_ERROR "EV_CLI is already defined.")
return()
Expand All @@ -14,7 +14,7 @@ macro(setup_ev_cli)
message(FATAL_ERROR "Python venv is not active. Please activate the python venv before running this command.")
endif()
set(EV_CLI "${${PROJECT_NAME}_PYTHON_VENV_PATH}/bin/ev-cli")
add_dependencies(ev-cli
add_dependencies(${PROJECT_NAME}_ev-cli
ev-dev-tools_pip_install_dist
)
endif()
Expand Down
6 changes: 3 additions & 3 deletions cmake/everest-generate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function (_ev_add_interfaces)
"${CHECK_DONE_FILE}"
DEPENDS
${ARGV}
ev-cli
${PROJECT_NAME}_ev-cli
COMMENT
"Generating/updating interface files ..."
VERBATIM
Expand Down Expand Up @@ -323,7 +323,7 @@ function (_ev_add_types)
"${CHECK_DONE_FILE}"
DEPENDS
${ARGV}
ev-cli
${PROJECT_NAME}_ev-cli
COMMENT
"Generating/updating type files ..."
VERBATIM
Expand Down Expand Up @@ -467,7 +467,7 @@ function (ev_add_cpp_module MODULE_NAME)
${RELATIVE_MODULE_DIR}
DEPENDS
${MODULE_PATH}/manifest.yaml
ev-cli
${PROJECT_NAME}_ev-cli
WORKING_DIRECTORY
${PROJECT_SOURCE_DIR}
COMMENT
Expand Down

0 comments on commit caa4221

Please sign in to comment.