mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Fix for OCC7.1 on Windows, also support providing own OCC version by setting OCC_INCLUDE_DIR and OCC_LIBRARY_DIR
This commit is contained in:
parent
e190943f4f
commit
360e6fba86
@ -88,7 +88,7 @@ endif (USE_PYTHON)
|
||||
|
||||
#######################################################################
|
||||
|
||||
if(USE_OCC AND WIN32)
|
||||
if(USE_OCC AND WIN32 AND NOT OCC_INCLUDE_DIR)
|
||||
ExternalProject_Add(win_download_occ
|
||||
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/tcl
|
||||
URL ${OCC_DOWNLOAD_URL_WIN}
|
||||
@ -100,7 +100,7 @@ if(USE_OCC AND WIN32)
|
||||
LOG_DOWNLOAD 1
|
||||
)
|
||||
list(APPEND NETGEN_DEPENDENCIES win_download_occ)
|
||||
endif(USE_OCC AND WIN32)
|
||||
endif(USE_OCC AND WIN32 AND NOT OCC_INCLUDE_DIR)
|
||||
|
||||
#######################################################################
|
||||
|
||||
@ -132,6 +132,8 @@ set_vars( NETGEN_CMAKE_ARGS
|
||||
INSTALL_DEPENDENCIES
|
||||
INTEL_MIC
|
||||
CMAKE_PREFIX_PATH
|
||||
OCC_INCLUDE_DIR
|
||||
OCC_LIBRARY_DIR
|
||||
)
|
||||
|
||||
if(${CMAKE_GENERATOR} STREQUAL "Unix Makefiles")
|
||||
|
@ -702,7 +702,7 @@ TopTools_MapOfShape& Partition_Inter3d::TouchedFaces()
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(BRepAlgo_AsDes) Partition_Inter3d::AsDes() const
|
||||
Handle_BRepAlgo_AsDes Partition_Inter3d::AsDes() const
|
||||
{
|
||||
return myAsDes;
|
||||
}
|
||||
@ -829,7 +829,7 @@ TopoDS_Vertex Partition_Inter3d::ReplaceSameDomainV(const TopoDS_Vertex& V,
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Handle(BRepAlgo_AsDes) Partition_Inter3d::SectionEdgesAD() const
|
||||
Handle_BRepAlgo_AsDes Partition_Inter3d::SectionEdgesAD() const
|
||||
{
|
||||
return mySectionEdgesAD;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user