Qt Creator is messing with "Default Build Directory" setting?
-
I'm not sure why, but this used to be working:
In my global preferences, I have defined the "Default Build Directory" as follows:
../build/%{ActiveProject:Name}/%{Qt:Version}/%{BuildConfig:Name}The project is a
TEMPLATE=subdirsproject usingqmake, and the project file isSBBL.pro. The project is structured like this:SBBL_DEV ├── SBBL_APP │ ├── 3rd_party │ ├── app │ ├──── include │ ├──── src │ ├──── SBBL.pro │ ├──── App.pro │ ├──── Libs.pro (etc.)Since I have things under
appand3rd_partyunder source code management (Fossil) in two different repositories, the idea is that when I build the project, the artifacts will stay outside of the folders which are under Fossil SCM, i.e.:SBBL_DEV ├── SBBL_APP │ ├── 3rd_party │ ├── app │ ├── build │ ├──── SBBL │ ├────── 6.11.0 │ ├──────── Debug │ ├──────── Release │ ├── libs (etc.)When I open the project and examine the value of
%{ActiveProject:Name}, this isSBBLas it should be. However, when I try to configure the project's kits, they all show build paths like this, e.g.:[...]/SBBL_DEV/SBBL_APP/build/6.11.0/Debug [...]/SBBL_DEV/SBBL_APP/build/6.11.0/Release [...]/SBBL_DEV/SBBL_APP/build/6.11.0/ProfileThe
"SBBL"subfolder is missing!As I said, this used to be working correctly. Am I missing something?
-
I fixed this by replacing
"%{ActiveProject:Name}"with just"%{Project:Name}".But how does one know the difference? In the list of variable replacements, they both resolve to
"SBBL". Does this have to do with the"TEMPLATE=subdirs"setting?