summaryrefslogtreecommitdiffstats
path: root/Tests/FindMPI/Test
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-06-30 13:43:49 (GMT)
committerChristian Pfeiffer <cpfeiffer@live.de>2017-09-15 12:55:08 (GMT)
commit2f673da69f51cf6d5ef7fce4ea3b18762502adb3 (patch)
tree7a5932897eefa6ef7d3799f89415053007dec068 /Tests/FindMPI/Test
parent9a58e69cc8a9eea2e4f4ff0e65e7b1df909221ac (diff)
downloadCMake-2f673da69f51cf6d5ef7fce4ea3b18762502adb3.zip
CMake-2f673da69f51cf6d5ef7fce4ea3b18762502adb3.tar.gz
CMake-2f673da69f51cf6d5ef7fce4ea3b18762502adb3.tar.bz2
FindMPI: Support components for various languages
Diffstat (limited to 'Tests/FindMPI/Test')
-rw-r--r--Tests/FindMPI/Test/CMakeLists.txt5
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})