qmake Variable containing the target platform
Unsolved
General and Desktop
-
Hi,
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.
Thanks,
Nathan -
Hi,
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.