Re: [CMake] infinite loop when trying to change the compiler in CMakeLists.txt

2009-11-05 Thread Eric Noulard
2009/11/5 btho...@nexus.hu: Dear All, I am managing a CFD code where wish to set the CMAKE_C_COMPILER and CMAKE_CXX_COMPILER to openmpi wrappers. So far i was using cmake 2.4.7 and in the CMakeLists.txt the following lines were working perfectly: SET(CMAKE_C_COMPILER

Re: [CMake] infinite loop when trying to change the compiler in CMakeLists.txt

2009-11-05 Thread Marcel Loose
Another way to deal with this is to set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER *before* the first project() command. You could do this in the main CMakeLists.txt file or in a separate CMake script file that you include before the project() command. In fact, this is what also happens when you do