Skip to content

Commit

Permalink
Check if the ev-cli target has already been defined before adding it
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Jun 24, 2024
1 parent 3213f4f commit 55dbc68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/ev-cli.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
macro(setup_ev_cli)
add_custom_target(ev-cli)
if(NOT TARGET ev-cli)
add_custom_target(ev-cli)
endif()
if(${EV_CLI})
message(FATAL_ERROR "EV_CLI is already defined.")
return()
Expand Down

0 comments on commit 55dbc68

Please sign in to comment.