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/abumq-ripe/cmake-config-exports.patch | |
Diffstat (limited to 'vcpkg/ports/abumq-ripe/cmake-config-exports.patch')
| -rw-r--r-- | vcpkg/ports/abumq-ripe/cmake-config-exports.patch | 41 |
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) |