vcpkg/ports/plplot/install-interface-include-directories.patch
Nagy-Egri Máté Ferenc 15cb53b9dd Add port: PLplot (#3117)
* Initial commit - added plplot files

* Added INTERFACE_INCLUDE_DIRECTORY to libplplot

* Fix installation layout

* Static linkage of plotting drivers (no need for PATH)

* .patch file instead of overwrite

* [plplot] Improve handling of cmake scripts. Avoid DLLS_WITHOUT_LIBS. Disable unused dependencies and require some.
2018-03-23 16:24:04 -07:00

14 lines
457 B
Diff

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d81b6a7..6b51809 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -181,6 +181,8 @@ include_directories(
add_library(plplot ${plplot_LIB_SRCS})
add_dependencies(plplot plhershey-unicode.h_built)
+target_include_directories(plplot INTERFACE $<INSTALL_INTERFACE:include>)
+
# Deal with external libraries.
set(LIB_INSTALL_RPATH ${LIB_DIR})
set(libplplot_LINK_LIBRARIES)