mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 11:41:36 +08:00
b8d272a463
* [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>
27 lines
867 B
Diff
27 lines
867 B
Diff
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})
|