Skip to content

Commit

Permalink
Merge branch 'occ_78_compatibility' into 'master'
Browse files Browse the repository at this point in the history
Opencascade 7.8.0 compatibility

See merge request ngsolve/netgen!643
  • Loading branch information
mhochsteger committed Mar 25, 2024
2 parents e5513d9 + afb2f2f commit dfba4ed
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
22 changes: 14 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -375,28 +375,34 @@ if (USE_OCC)
TKGeomAlgo
TKGeomBase
TKHLR
TKIGES
TKLCAF
TKMath
TKMesh
TKOffset
TKPrim
TKSTEP
TKSTEP209
TKSTEPAttr
TKSTEPBase
TKSTL
TKService
TKShHealing
TKTopAlgo
TKV3d
TKVCAF
TKXCAF
TKXDEIGES
TKXDESTEP
TKXSBase
TKernel
)
if(${OpenCASCADE_MAJOR_VERSION}.${OpenCASCADE_MINOR_VERSION} VERSION_GREATER_EQUAL 7.8)
list(APPEND OCC_LIBRARIES TKDEIGES TKDESTEP TKDESTL)
else()
list(APPEND OCC_LIBRARIES
TKIGES
TKSTEP
TKSTL
TKXDEIGES
TKXDESTEP
TKSTEP209
TKSTEPAttr
TKSTEPBase
)
endif()
if(UNIX AND NOT APPLE)
list(PREPEND OCC_LIBRARIES -Wl,--start-group)
list(APPEND OCC_LIBRARIES -Wl,--end-group)
Expand Down
6 changes: 4 additions & 2 deletions cmake/SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ if(BUILD_OCC)
set(OCC_DIR ${CMAKE_CURRENT_BINARY_DIR}/dependencies/occ)

ExternalProject_Add(project_occ
URL https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_6_3.zip
URL_MD5 2426e373903faabbd4f96a01a934b66d
# URL https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_6_3.zip
# URL_MD5 2426e373903faabbd4f96a01a934b66d
URL https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_8_0.zip
URL_MD5 19d025bf6b4f6ba1b334d189529573cb
DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external_dependencies
${SUBPROJECT_ARGS}
CMAKE_ARGS
Expand Down
1 change: 0 additions & 1 deletion libsrc/occ/Partition_Loop3d.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#if OCC_VERSION_HEX < 0x070000
#else
#include <TopTools_ShapeMapHasher.hxx>
#include <TopTools_OrientedShapeMapHasher.hxx>
#include <TopTools_MapOfOrientedShape.hxx>
#endif

Expand Down

0 comments on commit dfba4ed

Please sign in to comment.