vcpkg/ports/plplot/install-interface-include-directories.patch

14 lines
457 B
Diff
Raw Normal View History

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)