File tree Expand file tree Collapse file tree 5 files changed +22
-2
lines changed
Expand file tree Collapse file tree 5 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -562,6 +562,11 @@ install(
562562 Devel
563563)
564564
565+ if (POCO_UNBUNDLED)
566+ install (FILES cmake/FindPCRE2.cmake DESTINATION "${PocoConfigPackageLocation} " )
567+ install (FILES cmake/FindUtf8Proc.cmake DESTINATION "${PocoConfigPackageLocation} " )
568+ endif ()
569+
565570message (STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator" )
566571message (STATUS "${PROJECT_NAME} package version: ${PROJECT_VERSION} " )
567572if (BUILD_SHARED_LIBS )
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ set_target_properties(Foundation
9999)
100100
101101if (POCO_UNBUNDLED)
102- target_link_libraries (Foundation PRIVATE Pcre2::Pcre2 ZLIB::ZLIB Utf8Proc::Utf8Proc)
102+ target_link_libraries (Foundation PUBLIC Pcre2::Pcre2 ZLIB::ZLIB Utf8Proc::Utf8Proc)
103103 target_compile_definitions (Foundation PUBLIC POCO_UNBUNDLED)
104104else ()
105105 target_compile_definitions (Foundation PUBLIC UTF8PROC_STATIC)
Original file line number Diff line number Diff line change 1+ if (@POCO_UNBUNDLED@)
2+ include (CMakeFindDependencyMacro)
3+ list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR} " )
4+ find_dependency(ZLIB REQUIRED)
5+ find_dependency(PCRE2 REQUIRED)
6+ find_dependency(Utf8Proc REQUIRED)
7+ endif ()
8+
19include ("${CMAKE_CURRENT_LIST_DIR} /PocoFoundationTargets.cmake" )
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ target_include_directories(XML
5050)
5151
5252if (POCO_UNBUNDLED)
53- target_link_libraries (XML PRIVATE EXPAT::EXPAT)
53+ target_link_libraries (XML PUBLIC EXPAT::EXPAT)
5454 target_compile_definitions (XML PUBLIC POCO_UNBUNDLED)
5555else ()
5656 if (WIN32 )
Original file line number Diff line number Diff line change 11include (CMakeFindDependencyMacro)
22find_dependency(PocoFoundation)
3+ if (@POCO_UNBUNDLED@)
4+ if (CMAKE_VERSION VERSION_LESS "3.10" )
5+ list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR} /V39" )
6+ endif ()
7+ find_dependency(EXPAT REQUIRED)
8+ endif ()
9+
310include ("${CMAKE_CURRENT_LIST_DIR} /PocoXMLTargets.cmake" )
You can’t perform that action at this time.
0 commit comments