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 ?
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()
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake