diff options
author | Brad King <brad.king@kitware.com> | 2020-08-20 11:55:16 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-08-20 11:55:23 (GMT) |
commit | e029cb1ca633187f6e4fa9890be8e12a3cdd9641 (patch) | |
tree | f9331431ae6e56aeb3b9bbfc842a4fe783c3fafd /Modules/FindMPI.cmake | |
parent | 84148558fd0a0c28c487b28663666c66f5d4a2af (diff) | |
parent | 47abe5f2251f5e31c2da428cd8d92ba56844856c (diff) | |
download | CMake-e029cb1ca633187f6e4fa9890be8e12a3cdd9641.zip CMake-e029cb1ca633187f6e4fa9890be8e12a3cdd9641.tar.gz CMake-e029cb1ca633187f6e4fa9890be8e12a3cdd9641.tar.bz2 |
Merge topic 'FindMPI-cuda-pthread'
47abe5f225 FindMPI: Fix regression in pthread guard
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Raul Tambre <raul@tambre.ee>
Merge-request: !5147
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r-- | Modules/FindMPI.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake index b2526c1..b531e47 100644 --- a/Modules/FindMPI.cmake +++ b/Modules/FindMPI.cmake @@ -1157,7 +1157,7 @@ macro(_MPI_create_imported_target LANG) string(REPLACE "-pthread" "$<$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>:SHELL:-Xcompiler >-pthread" _MPI_${LANG}_COMPILE_OPTIONS "${MPI_${LANG}_COMPILE_OPTIONS}") string(REPLACE "-fexceptions" "$<$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>:SHELL:-Xcompiler >-fexceptions" - _MPI_${LANG}_COMPILE_OPTIONS "${MPI_${LANG}_COMPILE_OPTIONS}") + _MPI_${LANG}_COMPILE_OPTIONS "${_MPI_${LANG}_COMPILE_OPTIONS}") set_property(TARGET MPI::MPI_${LANG} PROPERTY INTERFACE_COMPILE_OPTIONS "${_MPI_${LANG}_COMPILE_OPTIONS}") unset(_MPI_${LANG}_COMPILE_OPTIONS) |