aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qcbor/install.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/qcbor/install.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/qcbor/install.patch')
-rw-r--r--vcpkg/ports/qcbor/install.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/qcbor/install.patch b/vcpkg/ports/qcbor/install.patch
new file mode 100644
index 0000000..fbe27e4
--- /dev/null
+++ b/vcpkg/ports/qcbor/install.patch
@@ -0,0 +1,28 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 3537c27..bf569a5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -46,7 +46,8 @@ target_sources(qcbor
+
+ target_include_directories(qcbor
+ PUBLIC
+- inc
++ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/inc>
++ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/qcbor>
+ PRIVATE
+ src
+ )
+@@ -90,8 +91,13 @@ set_target_properties(
+ include(GNUInstallDirs)
+ install(
+ TARGETS qcbor
++ EXPORT unofficial-qcbor-targets
+ PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/qcbor"
+ )
++install(EXPORT unofficial-qcbor-targets
++ FILE unofficial-qcbor-config.cmake
++ NAMESPACE unofficial::qcbor::
++ DESTINATION share/unofficial-qcbor)
+
+ if (NOT BUILD_QCBOR_TEST STREQUAL "OFF")
+ enable_testing()