From e23973e1ed35b6e590d43388cefe8e87c0c6f8b5 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 16 Jun 2016 10:14:52 +0200 Subject: [PATCH] if smesh is not built or used don't require vtk --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b18a01dc..6d96337a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -575,13 +575,13 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") find_package(SMESH) if(NOT SMESH_FOUND) message(ERROR "================\n" - "SMESH not found.\n" - "================\n") + "SMESH not found.\n" + "================\n") endif() include_directories(${SMESH_INCLUDE_DIR}) endif() set(SMESH_FOUND TRUE) - ENDIF(OCC_FOUND) + ENDIF(BUILD_SMESH) # -------------------------------- Netgen --------------------------------