[Qt-creator] Project variables?
Andrzej Telszewski
andrzej at telszewski.com
Fri Jan 31 13:32:40 CET 2025
On 31/01/2025 12:39, Jochen Becher wrote:
> I don't know which settings can be shared and
> which will be ignored from the .shared file but project build settings
> are definitely shared.
Looks like quite some stuff can be shared.
I took the _whole_ .user file, turned it into .shared (replacing
builddir with a relative path),
and it works as expected for all source code checkouts in the multiple
different directories.
>
> One key is ProjectExplorer.BuildConfiguration.BuildDirectory. Here you
> may use a relative path instead of the absolute path that is stored by
> QtC in the .user file.
Aye, that's what I originally did.
But I wasn't sure if that would work, so I thought about using
%{variables} to accomplish this.
More information about the Qt-creator
mailing list