File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -214,9 +214,11 @@ get_filename_component( C_COMPILER_DIR "${CMAKE_C_COMPILER}"
214
214
REALPATH )
215
215
216
216
if (FTN_COMPILER_NAME MATCHES "^[mM][pP][iI]" )
217
+ message ( DEPRECATION "Setting the Fortran compiler to an MPI wrapper script is deprecated!" )
217
218
set (MPI_Fortran_COMPILER "${CMAKE_Fortran_COMPILER} " )
218
219
endif ()
219
220
if (C_COMPILER_NAME MATCHES "^[mM][pP][iI]" )
221
+ message ( DEPRECATION "Setting the Fortran compiler to an MPI wrapper script is deprecated!" )
220
222
set (MPI_C_COMPILER "${CMAKE_C_COMPILER} " )
221
223
endif ()
222
224
Original file line number Diff line number Diff line change @@ -195,12 +195,16 @@ if [[ -n "${mpi_link_flags[*]:-}" ]]; then
195
195
fi
196
196
197
197
# Now do libraries, IN CORRECT ORDER, to append to command
198
- for lib in " ${caf_libs[@]:- } " ; do
199
- caf_added_libs+=(" ${prefix%/ } /${lib} " )
200
- done
201
- for lib in " ${mpi_libs[@]:- } " ; do
202
- caf_added_libs+=(" ${lib} " )
203
- done
198
+ if [[ -n " ${caf_libs[*]:- } " ]]; then
199
+ for lib in " ${caf_libs[@]:- } " ; do
200
+ caf_added_libs+=(" ${prefix%/ } /${lib} " )
201
+ done
202
+ fi
203
+ if [[ -n " ${mpi_libs[*]:- } " ]]; then
204
+ for lib in " ${mpi_libs[@]:- } " ; do
205
+ caf_added_libs+=(" ${lib} " )
206
+ done
207
+ fi
204
208
205
209
usage () {
206
210
echo " "
You can’t perform that action at this time.
0 commit comments