diff options
author | Brad King <brad.king@kitware.com> | 2021-08-03 15:02:04 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-08-03 15:02:23 (GMT) |
commit | 64e8d23caf94780a0ade27250b4eea8471fd5895 (patch) | |
tree | 08b5184c7818c30730f70c05998fb5aaa841a949 | |
parent | 631e017f29100555d67e30ec9f90a370d5199800 (diff) | |
parent | 7391363302d36da3ed8c421210c15dbaa69ad896 (diff) | |
download | CMake-64e8d23caf94780a0ade27250b4eea8471fd5895.zip CMake-64e8d23caf94780a0ade27250b4eea8471fd5895.tar.gz CMake-64e8d23caf94780a0ade27250b4eea8471fd5895.tar.bz2 |
Merge topic 'gate-vtk-compat'
7391363302 VTKCompatibility: ignore for "modern" VTK
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6413
-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}") |