summaryrefslogtreecommitdiff
path: root/Modules/FindMPI.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-24 15:41:16 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-24 15:41:16 -0400
commita8ecf11edf1b249b1a6add91ee0a0ea6c5fffcbf (patch)
tree9f40bb7b2a43c15fd6cad3af4822a5f47cfd1e58 /Modules/FindMPI.cmake
parent1727e6d9321379b17e2c29d5eb7c4336cd21aab6 (diff)
downloadcmake-a8ecf11edf1b249b1a6add91ee0a0ea6c5fffcbf.tar.gz
ENH: remove use of undefined cdr
Diffstat (limited to 'Modules/FindMPI.cmake')
-rw-r--r--Modules/FindMPI.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindMPI.cmake b/Modules/FindMPI.cmake
index 815cda8ab4..627effce14 100644
--- a/Modules/FindMPI.cmake
+++ b/Modules/FindMPI.cmake
@@ -148,7 +148,8 @@ elseif (MPI_COMPILE_CMDLINE)
set(MPI_LIBRARY "MPI_LIBRARY-NOTFOUND")
endif (MPI_NUMLIBS GREATER 0)
if (MPI_NUMLIBS GREATER 1)
- cdr(MPI_EXTRA_LIBRARY ${MPI_LIBRARIES})
+ set(MPI_EXTRA_LIBRARY ${MPI_LIBRARIES})
+ list(REMOVE_AT MPI_EXTRA_LIBRARY 0)
else (MPI_NUMLIBS GREATER 1)
set(MPI_EXTRA_LIBRARY "MPI_EXTRA_LIBRARY-NOTFOUND")
endif (MPI_NUMLIBS GREATER 1)