mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 21:17:49 +08:00
250ea54a8c
* [opencascade] Fix usage issue * Apply suggestion
20 lines
598 B
Diff
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")
|
|
|