summaryrefslogtreecommitdiffstats
path: root/Tests/FindMPI
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-29 20:33:54 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-29 21:18:30 (GMT)
commit0e87e6c1a40f8b5cce76599840c7aac23e183ac3 (patch)
tree0cad00d85c494746bec5301d1cecf69295667aea /Tests/FindMPI
parentee075a53c883775e8753e0fe6ba240eba9dcaae6 (diff)
downloadCMake-0e87e6c1a40f8b5cce76599840c7aac23e183ac3.zip
CMake-0e87e6c1a40f8b5cce76599840c7aac23e183ac3.tar.gz
CMake-0e87e6c1a40f8b5cce76599840c7aac23e183ac3.tar.bz2
Tests: Add FindMPI test environment modification option
Provide a way to configure an environment specific to this test. Avoid setting the environment globally for it in CI jobs.
Diffstat (limited to 'Tests/FindMPI')
-rw-r--r--Tests/FindMPI/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/FindMPI/CMakeLists.txt b/Tests/FindMPI/CMakeLists.txt
index 121d978..1bc12c8 100644
--- a/Tests/FindMPI/CMakeLists.txt
+++ b/Tests/FindMPI/CMakeLists.txt
@@ -19,3 +19,6 @@ add_test(NAME FindMPI.Test COMMAND
-DMPI_TEST_Fortran=${CMake_TEST_FindMPI_FLAG_Fortran}
--test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION>
)
+if(CMake_TEST_FindMPI_ENVMOD)
+ set_property(TEST FindMPI.Test PROPERTY ENVIRONMENT_MODIFICATION ${CMake_TEST_FindMPI_ENVMOD})
+endif()