[CMake] [CMAKE] Defining MPI_C_COMPILER on Windows
Michel Lestrade
michel.lestrade at crosslight.com
Tue Apr 24 13:57:50 EDT 2012
I need to pass the MPI_C_COMPILER value through the command line since
the Intel MPI libraries are not being recognized properly by the FindMPI
script (CMake 2.8.8). I used the following syntax:
cmake -G "NMake Makefiles" -DMPI_C_COMPILER:FILEPATH="C:/Program Files
(x86)/Intel/MPI/4.0.3.009/em64t/bin/mpicc"
but the CMake cache file reports the following entry instead (even after
deleting the old cache and CMake tree):
//Cleared
MPI_C_COMPILER:FILEPATH=MPI_C_COMPILER-NOTFOUND
I am a complete newbie to CMake and while this should be obvious, I
cannot figure out the right syntax. I even tried using a subst'ed drive
to define the path without using a long directory name (just in case):
the variable is still "cleared" by something.
Can anyone explain what I am doing wrong ?
-------------- next part --------------
cmake_minimum_required(VERSION 2.8)
project(hello)
# Search for MPI.
include(FindMPI)
if(NOT MPI_FOUND)
message(FATAL_ERROR "mpi is not found")
endif()
More information about the CMake
mailing list