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)


project (taesoo_cmu)

add_subdirectory(BaseLib)
add_subdirectory(MainLib)
add_subdirectory(MainLib/luabind-0.7)
add_subdirectory(OgreFltk)


-----------------------

in the OgreFltk directory, project (OgreFltk) and add_executable (OgreFltk
...) is defined.

cmake .
make VERBOSE=true

revealed that I am still using c++ instead of mpic++.
What should I change?
Thanks.
_______________________________________________
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