diff --git a/CMakeLists.txt b/CMakeLists.txt index 6fdd906..2ca50a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ include(GNUInstallDirs) target_include_directories(utf8cpp INTERFACE "$" - $ + $ ) include(CMakePackageConfigHelpers) diff --git a/utf8cppConfig.cmake.in b/utf8cppConfig.cmake.in index 9c15f36..4bdb9c4 100644 --- a/utf8cppConfig.cmake.in +++ b/utf8cppConfig.cmake.in @@ -2,3 +2,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") check_required_components("@PROJECT_NAME@") + +if(NOT TARGET utf8::cpp) + add_library(utf8::cpp ALIAS utf8cpp::utf8cpp) +endif()