summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libsplash/root_cmake_1.7.0.patch
blob: 788e24925d08e886cc365eb3b848d644cc091bff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git CMakeLists.txt CMakeLists.txt
index 4846ff7..5e102ce 100644
--- libSplash-1.7.0/CMakeLists.txt
+++ libSplash-1.7.0/CMakeLists.txt
@@ -392,7 +392,8 @@ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/tools/splash2xdmf.py DESTINATION bin)
 #
 enable_testing()
 
-if($ENV{USER} STREQUAL root)
+# OpenMPI root guard: https://github.com/open-mpi/ompi/issues/4451
+if("$ENV{USER}" STREQUAL "root")
     set(MPI_ALLOW_ROOT --allow-run-as-root)
 endif()
 set(MPI_TEST_EXE ${MPIEXEC_EXECUTABLE} ${MPI_ALLOW_ROOT} ${MPIEXEC_NUMPROC_FLAG})