]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: remove VTK configure option
authorMatthias Maier <tamiko@43-1.org>
Wed, 28 Jun 2023 16:05:46 +0000 (11:05 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 28 Jun 2023 22:55:20 +0000 (17:55 -0500)
Our CMake configure for VTK isn't quite prime-time ready. Given the fact
that we currently only support a very minimal infrastructure, let's just
remove the configure option for the release.

Acked-by: Luca Heltai <luca.heltai@sissa.it>
cmake/configure/configure_50_vtk.cmake [deleted file]
cmake/modules/FindDEAL_II_VTK.cmake [deleted file]
contrib/docker/Dockerfile

diff --git a/cmake/configure/configure_50_vtk.cmake b/cmake/configure/configure_50_vtk.cmake
deleted file mode 100644 (file)
index 8ceac4c..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-## ---------------------------------------------------------------------
-##
-## Copyright (C) 2012 - 2023 by the deal.II authors
-##
-## This file is part of the deal.II library.
-##
-## The deal.II library is free software; you can use it, redistribute
-## it, and/or modify it under the terms of the GNU Lesser General
-## Public License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-## The full text of the license can be found in the file LICENSE.md at
-## the top level directory of deal.II.
-##
-## ---------------------------------------------------------------------
-
-#
-# Configuration for the VTK library:
-#
-
-configure_feature(VTK)
diff --git a/cmake/modules/FindDEAL_II_VTK.cmake b/cmake/modules/FindDEAL_II_VTK.cmake
deleted file mode 100644 (file)
index 49a8035..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-## ---------------------------------------------------------------------
-##
-## Copyright (C) 2023 by the deal.II authors
-##
-## This file is part of the deal.II library.
-##
-## The deal.II library is free software; you can use it, redistribute
-## it, and/or modify it under the terms of the GNU Lesser General
-## Public License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-## The full text of the license can be found in the file LICENSE.md at
-## the top level directory of deal.II.
-##
-## ---------------------------------------------------------------------
-
-#
-# Try to find the VTK libraries
-#
-# This module exports:
-#
-# VTK_INCLUDE_DIR
-# VTK_VERSION_MAJOR
-# VTK_VERSION_MINOR
-# VTK_LIBRARIES
-#
-
-set(VTK_DIR "" CACHE PATH "An optional hint to a VTK installation")
-set_if_empty(VTK_DIR "$ENV{VTK_DIR}")
-
-if(NOT "${VTK_DIR}" STREQUAL "")
-  set(VTK_DIR ${VTK_DIR})
-endif()
-
-find_package(VTK 9.0.0 QUIET HINTS ${VTK_DIR})
-
-if(VTK_FOUND)
-  set(VTK_VERSION "${VTK_VERSION}")
-  set(VTK_MAJOR_VERSION "${VTK_MAJOR_VERSION}")
-  set(VTK_MINOR_VERSION "${VTK_MINOR_VERSION}")
-
-  set(VTK_INCLUDE_DIR
-    ${VTK_PREFIX_PATH}/include/vtk-${VTK_MAJOR_VERSION}.${VTK_MINOR_VERSION})
-
-  # Try to find full paths from targets contained in VTK_LIBRARIES.
-  set(_libraries)
-  foreach(_library ${VTK_LIBRARIES})
-    if(NOT ${_library} MATCHES "Python"
-       AND NOT ${_library} MATCHES "MPI4Py")
-      get_target_property(_configurations ${_library} IMPORTED_CONFIGURATIONS)
-
-      if(_configurations)
-       foreach(_configuration ${_configurations})
-          get_target_property(_imported_location ${_library} IMPORTED_LOCATION_${_configuration})
-          list(APPEND _libraries ${_imported_location})
-       endforeach()
-      endif()
-    endif()
-  endforeach()
-endif()
-
-process_feature(VTK
-  LIBRARIES REQUIRED _libraries
-  INCLUDE_DIRS REQUIRED VTK_INCLUDE_DIR
-  CLEAR VTK_INCLUDE_DIR VTK_LIBRARIES _libraries
-)
index 4cebdaf2ae96270218e8e82b2a88879e17f997db..2893cd2cfbe29b1924b81884a12ab3928f35fb48 100644 (file)
@@ -47,7 +47,6 @@ RUN cd /usr/src && \
     -DDEAL_II_WITH_TBB=ON \
     -DDEAL_II_WITH_TRILINOS=ON \
     -DDEAL_II_WITH_UMFPACK=ON \
-    -DDEAL_II_WITH_VTK=ON \
     -DDEAL_II_WITH_ZLIB=ON \
     .. \
     && ninja -j 2 install \

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.