diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/opencascade/install-include-dir.patch | |
Diffstat (limited to 'vcpkg/ports/opencascade/install-include-dir.patch')
| -rw-r--r-- | vcpkg/ports/opencascade/install-include-dir.patch | 16 |
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") + |