aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/abumq-ripe/cmake-config-exports.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/abumq-ripe/cmake-config-exports.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/abumq-ripe/cmake-config-exports.patch')
-rw-r--r--vcpkg/ports/abumq-ripe/cmake-config-exports.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/abumq-ripe/cmake-config-exports.patch b/vcpkg/ports/abumq-ripe/cmake-config-exports.patch
new file mode 100644
index 0000000..6923c58
--- /dev/null
+++ b/vcpkg/ports/abumq-ripe/cmake-config-exports.patch
@@ -0,0 +1,41 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 803fb6a..ad7ae72 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -97,9 +97,35 @@ target_compile_definitions(ripe PRIVATE
+ ELPP_NO_DEFAULT_LOG_FILE
+ ELPP_DEFAULT_LOGGING_FLAGS=4096
+ )
+-install (TARGETS ripe DESTINATION lib)
++
++include(GNUInstallDirs)
++include(CMakePackageConfigHelpers)
++
++write_basic_package_version_file(
++ ${CMAKE_CURRENT_BINARY_DIR}/unofficial-ripe-config-version.cmake
++ VERSION "${RIPE_VERSION}"
++ COMPATIBILITY AnyNewerVersion
++)
++install(FILES
++ ${CMAKE_CURRENT_BINARY_DIR}/unofficial-ripe-config-version.cmake
++ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/unofficial-ripe-config.cmake
++ DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/unofficial-ripe
++)
++
++install (TARGETS ripe
++ EXPORT unofficial-ripe-targets
++ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
++ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
++ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
++)
+ install (FILES include/Ripe.h DESTINATION "include")
+
++install(
++ EXPORT unofficial-ripe-targets
++ NAMESPACE unofficial::ripe::
++ DESTINATION "${CMAKE_INSTALL_DATADIR}/unofficial-ripe"
++)
++
+ ################################################ RIPE ##############################################
+
+ add_executable (ripe-bin src/ripe.cc lib/Ripe.cc)