Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
define 'Shadow Build' directory in .pro file
I would like to define the build directory, just like in
Shadow Build, but in my
I read somewhere that defining
OUT_PWDwould do the trick, but it did not.
Does anyone know how to do it?
It'd not something you define at the .pro file level. A shadow build is simply an out of source build.
Ok, I understand.
I need to place all the
Makefilein a different directory, just like the
Is there anyway to do it?
Is there anyway to do it?
Yes, out of source build, just like @SGaist already wrote.
mkdir build_folder cd build_folder qmake ../project_folder make
This post is deleted!
I meant in the
@RodrigoCanellas Why would you define build folder inside project file? Especially if more than one person is working on a project that can lead to problems.
The idea is that this configuration can be commited to a version control (like
git), and every developer can get it, regardless the QtCreator configuration, which stays, AFIK, in a file that can not be in a versioned directory. If a developer does not turn on
Shadow Buildand/or set
Build Pathcorrectly, can lead to build erros.
@RodrigoCanellas I never saw a project storing path to build folder inside project configuration to be honest. A developer should be able to set build folder properly the way he/she wants it to be.
Ok, I accept defeat... and what about the variables used in
Build & Run/
Default build directory, like
BuildConfig:Name? Would you know where can I get a list of these variables? I think I can get a result closer to the one I wanted, by using them.
More precisely, I would like to define something like
Thanks for your help!
@RodrigoCanellas For qmake variables see: https://doc.qt.io/qt-5/qmake-variable-reference.html
For QtCreator check this: https://stackoverflow.com/questions/35970727/use-of-variables-like-builddir-in-qtcreator-kit-settings-in-qt5
Thanks a lot!
I think I'll be able to do what I want through
%variables, but it seems the
A->Bbutton does not show the entire list, and I could not find what possible values for
<value>in, for example,
I saw now the
Debugger:Abi, which in my case evaluates in
x86-darwin-generic-mach_o-64bit arm-darwin-generic-mach_o-64bit. I do not know why it reports the two CPU architectures supported by the compiler, even though the current Kit defines
If there was a way to access the current ABI, may be through
%Kitvariable, and then to access each part of the ABI definition, that would do it.