From 55dbc686c2e2170fbe7b8819c4d1ddde68f95c41 Mon Sep 17 00:00:00 2001 From: Kai-Uwe Hermann Date: Mon, 24 Jun 2024 17:39:11 +0200 Subject: [PATCH] Check if the ev-cli target has already been defined before adding it Signed-off-by: Kai-Uwe Hermann --- cmake/ev-cli.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/ev-cli.cmake b/cmake/ev-cli.cmake index 70dd2a524..9a63653a6 100644 --- a/cmake/ev-cli.cmake +++ b/cmake/ev-cli.cmake @@ -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()