aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ampl-mp/install-targets.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/ampl-mp/install-targets.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/ampl-mp/install-targets.patch')
-rw-r--r--vcpkg/ports/ampl-mp/install-targets.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/ampl-mp/install-targets.patch b/vcpkg/ports/ampl-mp/install-targets.patch
new file mode 100644
index 0000000..c4db922
--- /dev/null
+++ b/vcpkg/ports/ampl-mp/install-targets.patch
@@ -0,0 +1,23 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d4c6762..c7b15b6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -197,7 +197,7 @@ function (add_mp_library name)
+ target_compile_definitions(${name}
+ PUBLIC ${add_mp_library_COMPILE_DEFINITIONS})
+ target_include_directories(${name}
+- PUBLIC ${add_mp_library_INCLUDE_DIRECTORIES})
++ PUBLIC $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/${add_mp_library_INCLUDE_DIRECTORIES}> $<INSTALL_INTERFACE:include>)
+ if (add_mp_library_DEPENDS)
+ add_dependencies(${name} ${add_mp_library_DEPENDS})
+ endif ()
+@@ -363,6 +363,7 @@ if(BUILD_TESTING)
+ endif()
+
+ install(DIRECTORY include/mp DESTINATION include)
+-install(TARGETS mp DESTINATION lib RUNTIME DESTINATION bin)
++install(TARGETS mp EXPORT unofficial-mp-targets DESTINATION lib RUNTIME DESTINATION bin)
+ install(FILES LICENSE.rst DESTINATION share/mp)
++include(0007-unofficial-export.cmake)
+ install(TARGETS gen-expr-info RUNTIME DESTINATION bin)
+\ No newline at end of file