diff --git a/testing/adios2/interface/CMakeLists.txt b/testing/adios2/interface/CMakeLists.txt index 3ef83cbafc..997bd37882 100644 --- a/testing/adios2/interface/CMakeLists.txt +++ b/testing/adios2/interface/CMakeLists.txt @@ -7,5 +7,9 @@ gtest_add_tests_helper(Interface ${test_mpi} ADIOS Interface. "") gtest_add_tests_helper(Write ${test_mpi} ADIOSInterface Interface. "") gtest_add_tests_helper(DefineVariable ${test_mpi} ADIOS Interface. "") gtest_add_tests_helper(DefineAttribute ${test_mpi} ADIOS Interface. "") -gtest_add_tests_helper(Selection ${test_mpi} ADIOS Interface. "") +if(ADIOS2_HAVE_MPI) + gtest_add_tests_helper(Selection NOEXEC ADIOS Interface. "") +else() + gtest_add_tests_helper(Selection FALSE ADIOS Interface. "") +endif() gtest_add_tests_helper(NoMpi FALSE ADIOS Interface. "")