From c1f5aa08edacc4eae6f2b789eceb7bc71daf98b3 Mon Sep 17 00:00:00 2001 From: Kyle Benesch <4b796c65+github@gmail.com> Date: Sat, 3 Jan 2026 07:31:14 -0800 Subject: [PATCH] Add missing CMake library alias Without this, `target_link_libraries(${PROJECT_NAME} PRIVATE utf8proc::utf8proc)` only works with `find_package` and not with `add_subdirectory`. This is needed for `FetchContent` to work optimally. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fbbf94..8d11f3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,7 @@ add_library (utf8proc utf8proc.c utf8proc.h ) +add_library (utf8proc::utf8proc ALIAS utf8proc) # expose header path, for when this is part of a larger cmake project target_include_directories(utf8proc PUBLIC $ $)