if smesh is not built or used don't require vtk
This commit is contained in:
parent
141398db77
commit
e23973e1ed
|
@ -550,7 +550,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||
# -------------------------------- Salome SMESH --------------------------
|
||||
|
||||
# Salome SMESH sources are under src/3rdParty now
|
||||
IF(OCC_FOUND)
|
||||
IF(BUILD_SMESH)
|
||||
#if we use smesh we definitly also need vtk, no matter of external or internal smesh
|
||||
find_package(VTK REQUIRED) #don't check VERSION 6 as this would exclude version 7
|
||||
set(BUILD_FEM_VTK ON)
|
||||
|
@ -581,7 +581,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||
include_directories(${SMESH_INCLUDE_DIR})
|
||||
endif()
|
||||
set(SMESH_FOUND TRUE)
|
||||
ENDIF(OCC_FOUND)
|
||||
ENDIF(BUILD_SMESH)
|
||||
|
||||
# -------------------------------- Netgen --------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user