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()