aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/plplot/cmake-config.diff
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/plplot/cmake-config.diff
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/plplot/cmake-config.diff')
-rw-r--r--vcpkg/ports/plplot/cmake-config.diff29
1 files changed, 29 insertions, 0 deletions
diff --git a/vcpkg/ports/plplot/cmake-config.diff b/vcpkg/ports/plplot/cmake-config.diff
new file mode 100644
index 0000000..e5e6995
--- /dev/null
+++ b/vcpkg/ports/plplot/cmake-config.diff
@@ -0,0 +1,29 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e29c43d..7063e4c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -308,7 +308,8 @@ endif(USE_DLL_SUBDIRECTORY)
+ # Prior to processing directories must initialize exports of installed targets.
+
+ # Install CMake package config file which handles all those exports.
+-install(FILES plplotConfig.cmake DESTINATION ${LIB_DIR}/cmake/plplot)
++configure_file("${PROJECT_SOURCE_DIR}/plplotConfig.cmake" "${PROJECT_BINARY_DIR}/plplotConfig.cmake" @ONLY)
++install(FILES "${PROJECT_BINARY_DIR}/plplotConfig.cmake" DESTINATION ${LIB_DIR}/cmake/plplot)
+
+ # Initialize the plplot_exports.cmake file which is appended to by CMake logic
+ # to install and export targets that is indirectly executed by the add_subdirectory commands below.
+diff --git a/plplotConfig.cmake b/plplotConfig.cmake
+index 677faec..fe6d2ca 100644
+--- a/plplotConfig.cmake
++++ b/plplotConfig.cmake
+@@ -1,3 +1,10 @@
++if(NOT "@BUILD_SHARED_LIBS@")
++ include(CMakeFindDependencyMacro)
++ if("@ENABLE_wxwidgets@")
++ find_dependency(wxWidgets)
++ endif()
++endif()
++
+ if(ANY_QT_DEVICE AND PLPLOT_USE_QT5)
+ # Find Qt5 components that we need to link applications against
+ # the plplot library (if ENABLE_DYNDRIVERS is false) and which we