Guard add_library

This commit is contained in:
Kai Pastor 2023-09-21 07:20:33 +02:00 committed by Nemanja Trifunovic
parent f23474118c
commit 18026b8ebc

View file

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