coolfluid/coolfluid3 — comment on commit 2b134257ff6c1d7f45eb43feec674e3a4ba0d99d
File:  line 0
By wdeconinck:

In Qt creator, you could probably also set the CC and CXX environment variable.
However, you can only do this AFTER building the project for the first time running CMake, from within Qt creator.
During this first time run, CMake needs to find MPI_C_COMPILER and MPI_CXX_COMPILER, otherwise it gives errors.
It doesn't find it automatically, unless specified explicitly.
You also need to specify by hand the compiler to use (usually also CC and CXX env variables)
So in practice this would mean that the CMake arguments to initialize Qt creator project would be:
-DCMAKE_BUILD_TYPE=Release -DDEPS_ROOT=/path/to/deps -DCMAKE_C_COMPILER=/path/to/deps/bin/mpicc -DCMAKE_CXX_COMPILER=/path/to/deps/bin/mpicxx -DMPI_C_COMPILER=/path/to/deps/bin/mpicc -DMPI_CXX_COMPILER=/path/to/deps/bin/mpicxx

This seems an awful lot of redundancy.
Before there was a check if CMAKE_C_COMPILER and CMAKE_CXX_COMPILER were MPI.. Now this is missing.
I just made this comment, because it was something I noticed, and people should be careful about.