Commit 62da19da authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Fix backwards compatibility logic for FindMPI

parent e7d43daa
......@@ -1144,7 +1144,7 @@ macro(_MPI_create_imported_target LANG)
add_library(MPI::MPI_${LANG} INTERFACE IMPORTED)
endif()
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}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment