Choose non-default compiler for my CMake project in QtCreator
-
How to choose a specific compiler to be used in a CMake project.
I'm developing on Mac OS 10.9.4 using Qt Creator v3.2.1 and want to use a special OMP compatible gcc compiler (gcc-mp-4.8).I'm aware of the "Compilers" and "Kits" sections in the Build & Run options. However, if I introduce my special compiler and choose the kit of my choice, it still won't use the compiler that I've specified.
If I check the CMakeCache.txt (with ccmake) I see that the default c++ compiler is in use: /usr/bin/c++
If I build the CMake source directly with CMake (outside of Qt Creator) everything works well:
@CC=gcc-mp-4.8 CXX=g++-mp-4.8 cmake <path/to/CMakeLists.txt>@What did I do wrong that QtCreator does not apply my choice?
Here are some screenshots of the relevant qtcreator settings:
Compilers: http://share.pho.to/7d8HW
Kits: http://pho.to/7d8LY
Build CMake project: http://pho.to/7d8NBThanks for any sort of help!
-
Hi,
Did you also compile a version of Qt with that compiler ? (Just guessing here)
You should also try the qt-creator IRC channel/mailing list. You'll find there Qt Creator's developers/maintainers (this forum is more user oriented)