MantisBT - CMake
View Issue Details
0000128CMakepublic2003-08-06 02:482003-08-07 09:26
Andrew Maclean 
Bill Hoffman 
highminoralways
closedfixed 
 
 
0000128: Quote (") replaced by " along with path splitting at the space in Visual C++ projects
I modified FindMPI.cmake it add in the paths for the standard installation of MPICH for parallel processing.

The CMake dialog displays the MPI paths as unquoted and they ar stored in this fashion in CMakeCache.txt

When Visual Studio is run, the paths are split at the space between Program and Files across two lines as follows in the include path and the library lib file list:
"C:/Program
Files/..."

Here is the file FindMPI.cmake:
(Once the bug is fixed, can the Windws additions as shown here ne added to this file in the CVS?)
------------------- BEGINNING OF FILE --------

#
# This module looks for MPI (Message Passing Interface) support
# it will define the following values
#
# MPI_INCLUDE_PATH = where mpi.h can be found
# MPI_LIBRARY = the library to link against (mpi mpich etc)
#

FIND_PATH(MPI_INCLUDE_PATH mpi.h
          /usr/local/include
          /usr/include
          /usr/include/mpi
          /usr/local/mpi/include
          "C:/Program Files/MPICH/SDK/Include"
      )

FIND_LIBRARY(MPI_LIBRARY
             NAMES mpi mpich
             PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
             "C:/Program Files/MPICH/SDK/Lib"
         )

FIND_LIBRARY(MPI_EXTRA_LIBRARY
             NAMES mpi++
             PATHS /usr/lib /usr/local/lib /usr/local/mpi/lib
             "C:/Program Files/MPICH/SDK/Lib"
         DOC "If a second mpi library is necessary, specify it here.")

MARK_AS_ADVANCED(MPI_INCLUDE_PATH MPI_LIBRARY MPI_EXTRA_LIBRARY)

------------------- END OF FILE --------
No tags attached.
Issue History

Notes
(0000081)
Bill Hoffman   
2003-08-07 09:23   
fixed in cvs