diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/pcre/export-cmake-targets.patch | |
Diffstat (limited to 'vcpkg/ports/pcre/export-cmake-targets.patch')
| -rw-r--r-- | vcpkg/ports/pcre/export-cmake-targets.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/pcre/export-cmake-targets.patch b/vcpkg/ports/pcre/export-cmake-targets.patch new file mode 100644 index 0000000..bdbd807 --- /dev/null +++ b/vcpkg/ports/pcre/export-cmake-targets.patch @@ -0,0 +1,23 @@ +--- a/CMakeLists.txt 2021-06-14 10:33:38.000000000 +0200
++++ b/CMakeLists.txt 2021-06-18 18:08:24.162881000 +0200
+@@ -934,10 +934,19 @@
+ # Installation
+ SET(CMAKE_INSTALL_ALWAYS 1)
+
+-INSTALL(TARGETS ${targets}
++foreach(target ${targets})
++ INSTALL(TARGETS ${target}
++ EXPORT pcre-targets
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
++ target_include_directories(${target} PUBLIC $<INSTALL_INTERFACE:include>)
++endforeach()
++
++INSTALL(EXPORT pcre-targets
++ NAMESPACE unofficial::pcre::
++ FILE unofficial-pcre-targets.cmake
++ DESTINATION "share/unofficial-pcre")
+
+ INSTALL(FILES ${PCRE_HEADERS} ${PCREPOSIX_HEADERS} DESTINATION include)
+
|