mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
cmake: Fix FindMPI getting consumed by newer CMake versions
This commit is contained in:
parent
34b6bea013
commit
78e7645fcb
18
CMake/patches/FindMPI.cmake
Normal file
18
CMake/patches/FindMPI.cmake
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
##=============================================================================
|
||||||
|
##
|
||||||
|
## Copyright (c) Kitware, Inc.
|
||||||
|
## All rights reserved.
|
||||||
|
## See LICENSE.txt for details.
|
||||||
|
##
|
||||||
|
## This software is distributed WITHOUT ANY WARRANTY; without even
|
||||||
|
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||||
|
## PURPOSE. See the above copyright notice for more information.
|
||||||
|
##
|
||||||
|
##=============================================================================
|
||||||
|
|
||||||
|
# This module is already included in new versions of CMake
|
||||||
|
if(CMAKE_VERSION VERSION_LESS 3.15)
|
||||||
|
include(${CMAKE_CURRENT_LIST_DIR}/3.15/FindMPI.cmake)
|
||||||
|
else()
|
||||||
|
include(${CMAKE_ROOT}/Modules/FindMPI.cmake)
|
||||||
|
endif()
|
@ -294,9 +294,14 @@ if(NOT VTKm_INSTALL_ONLY_LIBRARIES)
|
|||||||
FILES
|
FILES
|
||||||
${VTKm_SOURCE_DIR}/CMake/VTKmCMakeBackports.cmake
|
${VTKm_SOURCE_DIR}/CMake/VTKmCMakeBackports.cmake
|
||||||
${VTKm_SOURCE_DIR}/CMake/FindTBB.cmake
|
${VTKm_SOURCE_DIR}/CMake/FindTBB.cmake
|
||||||
${VTKm_SOURCE_DIR}/CMake/patches/3.15/FindMPI.cmake
|
${VTKm_SOURCE_DIR}/CMake/patches/FindMPI.cmake
|
||||||
DESTINATION ${VTKm_INSTALL_CMAKE_MODULE_DIR}
|
DESTINATION ${VTKm_INSTALL_CMAKE_MODULE_DIR}
|
||||||
)
|
)
|
||||||
|
install(
|
||||||
|
FILES
|
||||||
|
${VTKm_SOURCE_DIR}/CMake/patches/3.15/FindMPI.cmake
|
||||||
|
DESTINATION ${VTKm_INSTALL_CMAKE_MODULE_DIR}/3.15
|
||||||
|
)
|
||||||
|
|
||||||
# Install support files.
|
# Install support files.
|
||||||
install(
|
install(
|
||||||
|
Loading…
Reference in New Issue
Block a user