summaryrefslogtreecommitdiff
path: root/Modules/VTKCompatibility.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-07-29 20:45:01 -0400
committerBen Boeckel <ben.boeckel@kitware.com>2021-08-02 10:45:31 -0400
commit7391363302d36da3ed8c421210c15dbaa69ad896 (patch)
treee20bde02317c6091176c8bf5f360822cd5a0c9f3 /Modules/VTKCompatibility.cmake
parent9251205512c49bbdda5d82f48126dc5b8e79d70f (diff)
downloadcmake-7391363302d36da3ed8c421210c15dbaa69ad896.tar.gz
VTKCompatibility: ignore for "modern" VTK
Modern versions which use the module system really don't need any of the hacks needed here.
Diffstat (limited to 'Modules/VTKCompatibility.cmake')
-rw-r--r--Modules/VTKCompatibility.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/VTKCompatibility.cmake b/Modules/VTKCompatibility.cmake
index 1b0815e853..4ee7643c20 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}")