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/json-rpc-cxx/fix-config.patch | |
Diffstat (limited to 'vcpkg/ports/json-rpc-cxx/fix-config.patch')
| -rw-r--r-- | vcpkg/ports/json-rpc-cxx/fix-config.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vcpkg/ports/json-rpc-cxx/fix-config.patch b/vcpkg/ports/json-rpc-cxx/fix-config.patch new file mode 100644 index 0000000..197527e --- /dev/null +++ b/vcpkg/ports/json-rpc-cxx/fix-config.patch @@ -0,0 +1,22 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a362ea4..9c23acf 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,8 +10,16 @@ option(CODE_COVERAGE "Enable coverage reporting" OFF) + include(GNUInstallDirs) + + add_library(json-rpc-cxx INTERFACE) +-target_include_directories(json-rpc-cxx INTERFACE include) ++target_include_directories(json-rpc-cxx INTERFACE ++ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}> ++ $<INSTALL_INTERFACE:include> ++ ) + install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) ++install (TARGETS json-rpc-cxx EXPORT unofficial-json-rpc-cxx-config) ++install (EXPORT unofficial-json-rpc-cxx-config ++ NAMESPACE unofficial::json-rpc-cxx:: ++ DESTINATION share/unofficial-json-rpc-cxx ++ ) + + add_library(coverage_config INTERFACE) + |