vcpkg/ports/opencascade/install-include-dir.patch
Cheney Wang 250ea54a8c
[opencascade] Fix usage issue (#33252)
* [opencascade] Fix usage issue

* Apply suggestion
2023-08-25 12:07:42 -07:00

20 lines
598 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index f4ec871..59e5134 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1246,6 +1246,14 @@ foreach (OCCT_MODULE ${OCCT_MODULES})
endforeach()
set (OCCT_MODULES_ENABLED ${OCCT_MODULES_ENABLED_SORTED})
+foreach (OCCT_LIBRARY ${OCCT_LIBRARIES})
+ target_include_directories(
+ ${OCCT_LIBRARY}
+ INTERFACE
+ $<INSTALL_INTERFACE:include>
+ $<INSTALL_INTERFACE:include/opencascade>)
+endforeach()
+
# Add all targets to the build-tree export set
export (TARGETS ${OCCT_LIBRARIES} FILE "${CMAKE_BINARY_DIR}/OpenCASCADETargets.cmake")