[CMake] How can I change the compiler?
"Sören Freudiger"
muffmolch at gmx.de
Mon Nov 23 02:38:42 EST 2009
That's right. But on bad configured cluster systems you have a lot of different mpi-compilers. I don't know what changes had have been done to the findMPI modul. But the last version I tried wasn't satisfying.
And all you need to now are the compilers and the mpi library...
-----Ursprüngliche Nachricht-----
Von: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] Im Auftrag von James C. Sutherland
Gesendet: Sonntag, 22. November 2009 23:26
An: cmake Mailing List
Betreff: Re: [CMake] How can I change the compiler?
It is probably worth considering
find_package( MPI )
This will not only set the MPI compilers but also defines the mpi executable, etc.
James
On Nov 22, 2009, at 1:36 AM, Taesoo Kwon wrote:
> 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
_______________________________________________
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
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
More information about the CMake
mailing list