From 2bac3a5d5fff8616e8d71781f217b06d7bd38235 Mon Sep 17 00:00:00 2001 From: Valentin Seitz Date: Wed, 31 Jul 2024 12:04:04 +0200 Subject: [PATCH 1/2] Added Option to enable MPI tests --- CMakeLists.txt | 1 + tests/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78296ee..eaf3c5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,7 @@ option(INSTALL_WITH_RPATH "RPATH the build dependencies for e.g dlb into the sha # Other options option(WITH_MPI "Compile with MPI" OFF) +option(WITH_MPI_TESTS "Add MPI Tests. Requires mpirun to be working" OFF) if(BUILD_C_FORTRAN) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d99da70..db19af2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -35,7 +35,7 @@ add_test(NAME TestCppTalpTree COMMAND TestCppTalpTree) - if(WITH_MPI) + if(WITH_MPI_TESTS) add_executable(TestCppTalpTreeMPI cpp/TestCppTalpTreeMPI.cpp) target_link_libraries(TestCppTalpTreeMPI nesmik::nesmik MPI::MPI_CXX) -- GitLab From 4e604c74c176af305a5746584b00ee709cf36826 Mon Sep 17 00:00:00 2001 From: VALENTIN SEITZ Date: Wed, 31 Jul 2024 16:49:57 +0200 Subject: [PATCH 2/2] Apply 2 suggestion(s) to 2 file(s) Co-authored-by: JOAN VINYALS YLLA CATALA --- CMakeLists.txt | 2 +- tests/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eaf3c5c..f08fa4c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,7 @@ option(INSTALL_WITH_RPATH "RPATH the build dependencies for e.g dlb into the sha # Other options option(WITH_MPI "Compile with MPI" OFF) -option(WITH_MPI_TESTS "Add MPI Tests. Requires mpirun to be working" OFF) +option(WITH_MPI_TESTS "Add MPI Tests. Requires mpirun to be working" ON) if(BUILD_C_FORTRAN) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index db19af2..3840534 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -35,7 +35,7 @@ add_test(NAME TestCppTalpTree COMMAND TestCppTalpTree) - if(WITH_MPI_TESTS) + if(WITH_MPI AND WITH_MPI_TESTS) add_executable(TestCppTalpTreeMPI cpp/TestCppTalpTreeMPI.cpp) target_link_libraries(TestCppTalpTreeMPI nesmik::nesmik MPI::MPI_CXX) -- GitLab