-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[opencascade] Fix find_dependency missing (#30853)
* [opencascade] Fix feature dependence * update version * update version * Apply suggesstion * update version --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com> Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
- Loading branch information
1 parent
6507e8c
commit b8d272a
Showing
5 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/adm/templates/OpenCASCADEConfig.cmake.in b/adm/templates/OpenCASCADEConfig.cmake.in | ||
index c926c499..2fbc4023 100644 | ||
--- a/adm/templates/OpenCASCADEConfig.cmake.in | ||
+++ b/adm/templates/OpenCASCADEConfig.cmake.in | ||
@@ -4,6 +4,7 @@ | ||
# | ||
# This file is configured by OpenCASCADE. | ||
# | ||
+include(CMakeFindDependencyMacro) | ||
|
||
if(OpenCASCADE_ALREADY_INCLUDED) | ||
return() | ||
@@ -71,6 +72,13 @@ set (OpenCASCADE_WITH_GLES2 @USE_GLES2@) | ||
@SET_OpenCASCADE_WITH_D3D@ | ||
@SET_OpenCASCADE_WITH_GLX@ | ||
|
||
+if(@USE_FREETYPE@) | ||
+ find_dependency(freetype CONFIG) | ||
+endif() | ||
+ | ||
+find_dependency(OpenGL) | ||
+find_dependency(Eigen3 REQUIRED) | ||
+ | ||
# Import OpenCASCADE compile definitions, C and C++ flags for each installed configuration. | ||
file(GLOB CONFIG_FILES "${CMAKE_CURRENT_LIST_DIR}/OpenCASCADECompileDefinitionsAndFlags-*.cmake") | ||
foreach(f ${CONFIG_FILES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters