For me it works:
qmake Code:
!build_pass { linux-*:message(LINUX) win32-*:message(WINDOWS) }To copy to clipboard, switch view to plain text mode
QMAKESPEC=/home/wysota/Qt/5.3/gcc_64/mkspecs/win32-g++ qmake
yields:
Project MESSAGE: WINDOWS
Changing the specs will not modify the value of qmake variables, why would it? You are still within the same qmake installation.
Also remember you can always pass a different specs to qmake using the -spec parameter:
qmake -spec windows-g++
Bookmarks