diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-07-30 00:45:01 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-08-02 14:45:31 (GMT) |
commit | 7391363302d36da3ed8c421210c15dbaa69ad896 (patch) | |
tree | e20bde02317c6091176c8bf5f360822cd5a0c9f3 /Modules/VTKCompatibility.cmake | |
parent | 9251205512c49bbdda5d82f48126dc5b8e79d70f (diff) | |
download | CMake-7391363302d36da3ed8c421210c15dbaa69ad896.zip CMake-7391363302d36da3ed8c421210c15dbaa69ad896.tar.gz CMake-7391363302d36da3ed8c421210c15dbaa69ad896.tar.bz2 |
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.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
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}") |