cmake: drop support for vtk<=5
Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>pull/107/head
parent
6673aefd70
commit
55068629b0
|
@ -7,7 +7,7 @@ ELSE()
|
|||
ENDIF()
|
||||
|
||||
PROJECT(openEMS CXX C)
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
# default
|
||||
set(LIB_VERSION_MAJOR 0)
|
||||
|
@ -61,7 +61,6 @@ if(UNIX AND ENABLE_RPATH)
|
|||
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
endif()
|
||||
|
||||
|
||||
if (WITH_MPI)
|
||||
ADD_DEFINITIONS(-DMPI_SUPPORT)
|
||||
# Require MPI for this project:
|
||||
|
@ -138,14 +137,7 @@ INCLUDE_DIRECTORIES (${Boost_INCLUDE_DIRS})
|
|||
find_package(VTK COMPONENTS vtkIOXML vtkIOGeometry vtkIOLegacy vtkIOPLY NO_MODULE REQUIRED)
|
||||
|
||||
message(STATUS "Found package VTK. Using version " ${VTK_VERSION})
|
||||
if("${VTK_MAJOR_VERSION}" GREATER 5)
|
||||
set( vtk_LIBS ${VTK_LIBRARIES} )
|
||||
else()
|
||||
set( vtk_LIBS
|
||||
vtkCommon
|
||||
vtkIO
|
||||
)
|
||||
endif()
|
||||
set( vtk_LIBS ${VTK_LIBRARIES} )
|
||||
message(STATUS "vtk libraries " ${vtk_LIBS})
|
||||
|
||||
include(${VTK_USE_FILE})
|
||||
|
|
Loading…
Reference in New Issue