diff options
author | Brad King <brad.king@kitware.com> | 2017-09-18 14:10:53 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-09-18 14:11:04 (GMT) |
commit | bc2009b724f24e01c1a3d8b076c75a19b7c94b96 (patch) | |
tree | fb90695ff5d6e41a15acdd9d3762075841bd6337 /Tests | |
parent | d31b1c0e990171e6bc6780b01ab5df0dafc3ab9c (diff) | |
parent | bf1e606f6097a7d7012848d508e5f74810a015d2 (diff) | |
download | CMake-bc2009b724f24e01c1a3d8b076c75a19b7c94b96.zip CMake-bc2009b724f24e01c1a3d8b076c75a19b7c94b96.tar.gz CMake-bc2009b724f24e01c1a3d8b076c75a19b7c94b96.tar.bz2 |
Merge topic 'findmpi-overhaul'
bf1e606f FindMPI: Add support for FreeBSD and SLES
2f673da6 FindMPI: Support components for various languages
9a58e69c FindMPI: Modernization from ground up
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !893
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/FindMPI/Test/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/FindMPI/Test/CMakeLists.txt b/Tests/FindMPI/Test/CMakeLists.txt index 3910c25..efe8c62 100644 --- a/Tests/FindMPI/Test/CMakeLists.txt +++ b/Tests/FindMPI/Test/CMakeLists.txt @@ -20,12 +20,17 @@ foreach(c C CXX Fortran) endif() endforeach() +set(MPI_CXX_SKIP_MPICXX TRUE) +set(MPI_CXX_VALIDATE_SKIP_MPICXX TRUE) find_package(MPI REQUIRED) foreach(c C CXX Fortran) if(NOT "${MPI_TEST_${c}}") continue() endif() + if(${c} STREQUAL CXX AND MPI_MPICXX_FOUND) + message(FATAL_ERROR "Could not suppress MPI-2 C++ bindings for this MPI.") + endif() source_code_mapper_helper(${c}) add_executable(test_tgt_${c} ${MPITEST_SOURCE_FILE}) target_link_libraries(test_tgt_${c} MPI::MPI_${c}) |