From c8ea3b6ac3f5720e55644cef3fa697202ccdcf48 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Thu, 21 Sep 2023 07:20:33 +0200 Subject: [PATCH] Guard add_library --- utf8cppConfig.cmake.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utf8cppConfig.cmake.in b/utf8cppConfig.cmake.in index 450fe8d..fd3480b 100644 --- a/utf8cppConfig.cmake.in +++ b/utf8cppConfig.cmake.in @@ -3,4 +3,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/utf8cppTargets.cmake") check_required_components( "utf8cpp" ) -add_library(utf8::cpp ALIAS utf8cpp) +if(NOT TARGET utf8::cpp) + add_library(utf8::cpp ALIAS utf8cpp) +endif()