2009/11/22 Taesoo Kwon <taesoob...@gmail.com>:
> I am sorry that this should be an recurring question.
> But I wasn't able to find any working solution after hours of search.
>
> What I tried is as follows:
>
> /root/CMakeLists.txt
>
> set(CMAKE_CXX_COMPILER mpic++)
> set(CMAKE_C_COMPILER mpicc)

The CMakeLists.txt files define the project structure, but the
compiler is property of the system, not the project.

export CC=mpicc
export CXX=mpic++
mkdir build
cd build
cmake ..
make VERBOSE=1

should work.

HTH,
 -- Maik
_______________________________________________
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

Reply via email to