From 55068629b01831b85406f54e68612ab2169f4aeb Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Fri, 6 Jan 2023 20:05:13 +0100 Subject: [PATCH] cmake: drop support for vtk<=5 Signed-off-by: Thorsten Liebig --- CMakeLists.txt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e465451..6e11ab1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})