summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/adios2/cmake-update-findmpi.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/adios2/cmake-update-findmpi.patch b/var/spack/repos/builtin/packages/adios2/cmake-update-findmpi.patch
index 0cd81d54dc..1e00ca0bea 100644
--- a/var/spack/repos/builtin/packages/adios2/cmake-update-findmpi.patch
+++ b/var/spack/repos/builtin/packages/adios2/cmake-update-findmpi.patch
@@ -596,7 +596,7 @@ index 6a874b3..8551821 100644
endif()
- set_property(TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_COMPILE_OPTIONS "${MPI_${LANG}_COMPILE_OPTIONS}")
-+ if(NOT CMAKE_VERSION VERSION_LESS 3.11)
++ if(NOT CMAKE_VERSION VERSION_LESS 3.12)
+ # When this is consumed for compiling CUDA, use '-Xcompiler' to wrap '-pthread'.
+ string(REPLACE "-pthread" "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:-Xcompiler >-pthread"
+ _MPI_${LANG}_COMPILE_OPTIONS "${MPI_${LANG}_COMPILE_OPTIONS}")