mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 11:19:00 +08:00
9f20dbd9a0
- New upstream version 8.45 This is the final release of PCRE1 - Update patches: export-cmake-targets.patch pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch - Add patch: pcre-8.45_fix_postfix_for_debug_Windows_builds.patch - Remove deprecated SYSTEM_LIBRARIES from vcpkg_fixup_pkgconfig() - Switch from CONTROL to vcpkg.json .\vcpkg format-manifest .\ports\pcre\CONTROL
24 lines
779 B
Diff
24 lines
779 B
Diff
--- 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)
|
|
|