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

Eike Ziller Eike.Ziller at qt.io
Wed May 24 10:59:33 CEST 2023


If the name is not sufficient (which should be there by default), I guess it would be just %{BuildConfig:Type}

Br, Eike

> Am 24/05/2023 um 10:06 schrieb Andrzej Telszewski <andrzej at telszewski.com>:
> 
> 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

-- 
Eike Ziller
Principal Software Engineer

Qt Group
Erich-Thilo-Straße 10
12489 Berlin, Germany
eike.ziller at qt.io
https://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Jouni Lintunen
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B




More information about the Qt-creator mailing list