fix: unbundled build for utf8proc

This commit is contained in:
Guenter Obiltschnig 2024-09-27 14:16:40 +02:00
parent 3d0b9d7338
commit 970c8108b7
2 changed files with 9 additions and 1 deletions

View File

@ -47,5 +47,5 @@ target_libs = PocoFoundation CppUnit
include $(POCO_BASE)/build/rules/exec include $(POCO_BASE)/build/rules/exec
ifdef POCO_UNBUNDLED ifdef POCO_UNBUNDLED
SYSLIBS += -lz -lpcre SYSLIBS += -lz -lpcre2-8 -lutf8proc
endif endif

View File

@ -57,4 +57,12 @@ if(Utf8Proc_FOUND)
set( UTF8PROC_INCLUDE_DIRS ${UTF8PROC_INCLUDE_DIR} ) set( UTF8PROC_INCLUDE_DIRS ${UTF8PROC_INCLUDE_DIR} )
endif() endif()
if(Utf8Proc_FOUND AND NOT TARGET Utf8Proc::Utf8Proc)
add_library(Utf8Proc::Utf8Proc UNKNOWN IMPORTED)
set_target_properties(Utf8Proc::Utf8Proc PROPERTIES
IMPORTED_LOCATION "${UTF8PROC_LIBRARY}"
INTERFACE_INCLUDE_DIRECTORIES "${UTF8PROC_INCLUDE_DIR}"
)
endif()
mark_as_advanced(UTF8PROC_INCLUDE_DIR UTF8PROC_LIBRARY) mark_as_advanced(UTF8PROC_INCLUDE_DIR UTF8PROC_LIBRARY)