-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#noissue chore(deps): upgrade
opencascade
to 7.7.2
- Loading branch information
1 parent
40985b9
commit 15a0688
Showing
9 changed files
with
110 additions
and
82 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 |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
}, | ||
{ | ||
"name": "opencascade", | ||
"version>=": "7.7.1" | ||
"version>=": "7.7.2" | ||
} | ||
], | ||
"features": { | ||
|
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,15 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index fbcede5..66b127d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -563,7 +563,9 @@ if (CAN_USE_FREETYPE) | ||
if (USE_FREETYPE) | ||
message (STATUS "Info: FreeType is used by OCCT") | ||
add_definitions (-DHAVE_FREETYPE) | ||
- OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/freetype") | ||
+ find_package(freetype CONFIG REQUIRED) | ||
+ get_target_property(FREETYPE_INCLUDE_DIR freetype INTERFACE_INCLUDE_DIRECTORIES) | ||
+ list (APPEND 3RDPARTY_INCLUDE_DIRS "${FREETYPE_INCLUDE_DIR}") | ||
else() | ||
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_FREETYPE") | ||
OCCT_CHECK_AND_UNSET ("3RDPARTY_FREETYPE_INCLUDE_DIR_freetype2") |
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,30 @@ | ||
diff --git a/adm/templates/OpenCASCADEConfig.cmake.in b/adm/templates/OpenCASCADEConfig.cmake.in | ||
index c926c49..a0502cc 100644 | ||
--- a/adm/templates/OpenCASCADEConfig.cmake.in | ||
+++ b/adm/templates/OpenCASCADEConfig.cmake.in | ||
@@ -5,6 +5,8 @@ | ||
# This file is configured by OpenCASCADE. | ||
# | ||
|
||
+include(CMakeFindDependencyMacro) | ||
+ | ||
if(OpenCASCADE_ALREADY_INCLUDED) | ||
return() | ||
endif() | ||
@@ -71,6 +73,16 @@ 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) | ||
+ | ||
+if(@USE_EIGEN@) | ||
+ find_dependency(Eigen3) | ||
+endif() | ||
+ | ||
# 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 was deleted.
Oops, something went wrong.
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,41 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 1bacca1a..ad3a390d 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -731,7 +731,7 @@ endif() | ||
if (NOT DEFINED ANDROID AND CAN_USE_TBB) | ||
if (USE_TBB) | ||
add_definitions (-DHAVE_TBB) | ||
- OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/tbb") | ||
+ find_package(TBB CONFIG REQUIRED) | ||
else() | ||
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_TBB") | ||
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_TBBMALLOC") | ||
@@ -875,6 +875,14 @@ if (3RDPARTY_LIBRARY_DIRS) | ||
list (REMOVE_DUPLICATES 3RDPARTY_LIBRARY_DIRS) | ||
string (REGEX REPLACE ";" "\n\t" 3RDPARTY_LIBRARY_DIRS_WITH_ENDS "${3RDPARTY_LIBRARY_DIRS}") | ||
message (STATUS "Info: The directories of 3rdparty libraries: \n\t${3RDPARTY_LIBRARY_DIRS_WITH_ENDS}") | ||
+ | ||
+ if(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
+ get_filename_component(LIB_BASE_PATH ${3RDPARTY_LIBRARY_DIRS} DIRECTORY) | ||
+ list(APPEND 3RDPARTY_LIBRARY_DIRS_DEBUG "${LIB_BASE_PATH}/debug/lib") | ||
+ message (STATUS "Info: The directories of 3rdparty libraries: \n\t${3RDPARTY_LIBRARY_DIRS_DEBUG}") | ||
+ link_directories (${3RDPARTY_LIBRARY_DIRS} ${3RDPARTY_LIBRARY_DIRS_DEBUG}) | ||
+ endif() | ||
+ | ||
link_directories (${3RDPARTY_LIBRARY_DIRS}) | ||
endif() | ||
|
||
diff --git a/adm/cmake/occt_csf.cmake b/adm/cmake/occt_csf.cmake | ||
index bee8ba78..692f6232 100644 | ||
--- a/adm/cmake/occt_csf.cmake | ||
+++ b/adm/cmake/occt_csf.cmake | ||
@@ -12,7 +12,7 @@ endif() | ||
|
||
# TBB | ||
if (USE_TBB) | ||
- set (CSF_TBB "tbb tbbmalloc") | ||
+ set (CSF_TBB "tbb12 tbbmalloc") | ||
else() | ||
set (CSF_TBB) | ||
endif() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,19 @@ | ||
From 32c4bdd88555309752215c53842d438cb51bcb62 Mon Sep 17 00:00:00 2001 | ||
From: bloess <[email protected]> | ||
Date: Mon, 15 Feb 2021 16:26:36 +0100 | ||
Subject: [PATCH] install include-dir | ||
|
||
--- | ||
CMakeLists.txt | 9 +++++++++ | ||
1 file changed, 9 insertions(+) | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 100d613..464f95a 100644 | ||
index f4ec871..59e5134 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1171,6 +1171,14 @@ foreach (OCCT_MODULE ${OCCT_MODULES}) | ||
@@ -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>) | ||
+ | ||
+ 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") | ||
|
||
-- | ||
2.14.3.windows.1 | ||
|
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