I have 8 autodetected compilers in Kit setup. The compiler that I want to use is towards the end of the list.
qtCreatorCompiler.jpg
Question: how to select a specific compiler in QtCreator?
I have 8 autodetected compilers in Kit setup. The compiler that I want to use is towards the end of the list.
qtCreatorCompiler.jpg
Question: how to select a specific compiler in QtCreator?
When you go to the Kits tab, you will have an option to choose the compiler.
Its all about Kits now :-)
TorAn (7th March 2014)
Thank you,
I found out that the selection of compilers is done under the "Kits", by selecting the kit and changing "compiler" selection.
I am now stuck with the question - how to change/add a compiler flag for a selected compiler in the kit?
You can use the variable QMAKE_CXXFLAGS in your .pro file.
Also if you wanna pass some argument to qmake or make, that can be done by going to Projects Tab in Qt Creator, and from there selecting Build option and then View Details for qmake and make steps.
There you can pass arguments for the qmake or make.
well, I have all my projects set up correctly now. The question however, is expanded to this one:
Say, I have 20 different projects and all of them use the same compiler flags, includes of external libs etc. How to set it up on a "QtCreator" level (not on a project level) and refer to these settings in each pro file.
Like:
include <someglobalsettings usage from QtCreator>...
Bookmarks