Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
qmake Variable containing the target platform
WayneGoetz last edited by
I would like to add code like this into my .pro file:
DESTDIR = build/$$TARGET_PLATFORM
But I do not know which variable I could use for "$$TARGET_PLATFORM". It should be something like "linux", "ios", "android" etc.
You can doit using scopes:
win32: TARGET_PLATFORM = windows
However, why do you want that ? Shadow builds are usually a better idea since they provide a separated builder for each platform and debug/release builds.