aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/opencascade/install-include-dir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/opencascade/install-include-dir.patch')
-rw-r--r--vcpkg/ports/opencascade/install-include-dir.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/opencascade/install-include-dir.patch b/vcpkg/ports/opencascade/install-include-dir.patch
new file mode 100644
index 0000000..f250fbb
--- /dev/null
+++ b/vcpkg/ports/opencascade/install-include-dir.patch
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 715adb7c2e..a06f8a8c88 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1375,6 +1375,11 @@ foreach (OCCT_MODULE ${OCCT_MODULES})
+ endforeach()
+ set (OCCT_MODULES_ENABLED ${OCCT_MODULES_ENABLED_SORTED})
+
++foreach (OCCT_LIBRARY IN LISTS OCCT_LIBRARIES)
++ target_include_directories(${OCCT_LIBRARY} INTERFACE $<INSTALL_INTERFACE:include/opencascade>) # OpenCASCADE_INCLUDE_DIR
++ target_include_directories(${OCCT_LIBRARY} INTERFACE $<INSTALL_INTERFACE:include>) # vcpkg lock-in
++endforeach()
++
+ # Add all targets to the build-tree export set
+ export (TARGETS ${OCCT_LIBRARIES} FILE "${CMAKE_BINARY_DIR}/OpenCASCADETargets.cmake")
+