How to specify build directory in Qt Creator for shadow build without use of an absolute path?

Sergey Skoblikov picture Sergey Skoblikov · Aug 10, 2012 · Viewed 8.1k times · Source

Absolute paths are ridiculous. All we need - and all we are allowed, by the way - is to use a folder on the same level that the folder containing .pro file for shadow builds. There are bugs otherwise.

But you can't just specify ../mingw_debug for example. Yes, it is a relative path but relative to what? It turns out it is relative to current directory of Qt Creator, and this is completely meaningless.

%{sourceDir} is of no help either. %{sourceDir}/../mingw_debug dosen't work, at least on Windows. If there was a way to extract parent folder from sourceDir!

Does anybody know a way to solve the issue?

Answer

James Turner picture James Turner · Jun 8, 2016

In Qt Creator 3.6.1 at least, this is fixed - relative paths work just fine. The resolved full path is shown in the tooltip. I don't know when in the past few years this was fixed.