[CMake] How can I change the compiler?

2009-11-22 Thread Taesoo Kwon
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)

Re: [CMake] How can I change the compiler?

2009-11-22 Thread Maik Beckmann
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

Re: [CMake] How can I change the compiler?

2009-11-22 Thread James C. Sutherland
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

Re: [CMake] How can I change the compiler?

2009-11-22 Thread Sören Freudiger
Nachricht- Von: cmake-boun...@cmake.org [mailto:cmake-boun...@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