using Environment vars in build params?
Solved
Qt Creator and other tools
-
On Windows, I go to the menu bar and pick Tools -> Options… -> Kits, i select my Kit, then next to "Environment" i click "Change", then enter these values:
Then in my project, i click the "Projects" button, then click "Build", and i check "shadow build", then in "Build Directory" i put this line:
However, when i look below under "Build Steps", next to "Make", which should show the resolved path, i see this:
and indeed, it builds to that (wrong) path. the path should end with "…\CFTest\win_64-CFTest"
What am i missing?
-
the solution is to use this:
%{ActiveProject:BuildConfig:Env:OS_NAME_SHORT}