mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
fix: unbundled build for utf8proc
This commit is contained in:
parent
3d0b9d7338
commit
970c8108b7
@ -47,5 +47,5 @@ target_libs = PocoFoundation CppUnit
|
||||
include $(POCO_BASE)/build/rules/exec
|
||||
|
||||
ifdef POCO_UNBUNDLED
|
||||
SYSLIBS += -lz -lpcre
|
||||
SYSLIBS += -lz -lpcre2-8 -lutf8proc
|
||||
endif
|
||||
|
@ -57,4 +57,12 @@ if(Utf8Proc_FOUND)
|
||||
set( UTF8PROC_INCLUDE_DIRS ${UTF8PROC_INCLUDE_DIR} )
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user