[Qt-creator] Using build type in _Default build directory_

Christian Stenger Christian.Stenger at qt.io
Wed May 24 10:14:53 CEST 2023


Hi,

Shouldn't the default already provide this? It's using

 %{BuildConfig:Name}

for that..

BR,
Christian

________________________________________
From: Qt-creator <qt-creator-bounces at qt-project.org> on behalf of Andrzej Telszewski <andrzej at telszewski.com>
Sent: Wednesday, May 24, 2023 10:06 AM
To: qt-creator at qt-project.org
Subject: [Qt-creator] Using build type in _Default build directory_

Hi,

when configuring CMake based project, I would like the build directory
to contain the _build type_ in the directory path.

I tried putting:

- %{CurrentDocument:Project:BuildConfig:Name}
- %{ActiveProject:BuildConfig:Name}
- %{CurrentDocument:Project:BuildConfig:Type}
- %{ActiveProject:BuildConfig:Type}


in the _Default build directory:_ in Preferences -> Build & Run ->
Default Build Properties.

Unfortunately, when configuring the project, I get _empty_ or "unknown"
strings.

Is there any way to solve it?

Thank you!

--
Best regards,
Andrzej Telszewski

--
Qt-creator mailing list
Qt-creator at qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


More information about the Qt-creator mailing list