diff --git a/CMakeLists.txt b/CMakeLists.txt index 82f3bb35d53..f934f0ba45a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -451,7 +451,7 @@ cmake_print_variables(WITH_MPIEXEC) if (NOT WITH_MPIEXEC) set(WITH_MPIEXEC mpiexec) endif() -set(MPIEXEC WITH_MPIEXEC) +set(MPIEXEC ${WITH_MPIEXEC}) configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/tests/cunit/run_tests.sh.in ${CMAKE_CURRENT_BINARY_DIR}/tests/cunit/run_tests.sh @ONLY)