From 7391363302d36da3ed8c421210c15dbaa69ad896 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 29 Jul 2021 20:45:01 -0400 Subject: VTKCompatibility: ignore for "modern" VTK Modern versions which use the module system really don't need any of the hacks needed here. --- Modules/VTKCompatibility.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/VTKCompatibility.cmake b/Modules/VTKCompatibility.cmake index 1b0815e..4ee7643 100644 --- a/Modules/VTKCompatibility.cmake +++ b/Modules/VTKCompatibility.cmake @@ -1,6 +1,10 @@ # Distributed under the OSI-approved BSD 3-Clause License. See accompanying # file Copyright.txt or https://cmake.org/licensing for details. +# Not needed for "modern" VTK. +if (EXISTS "${VTK_SOURCE_DIR}/CMake/vtkModule.cmake") + return () +endif () if(APPLE) set(CMAKE_CXX_CREATE_SHARED_LIBRARY "${CMAKE_C_CREATE_SHARED_LIBRARY}") -- cgit v0.12