.pro project file includes "unix" with "macx" defintions with qmake
I have a .pro project file that I'm using for my Win/Mac/Linux project with Qt 4.3.5.
I have some platform specific definitions such as:
Code:
unix {
INCLUDEPATH += ./unix_stuff
}
macx {
INCLUDEPATH += ./mac_stuff
}
The problem I'm having is that on Mac OS, qmake seems to treat "unix" as true and my unix specific definitions are getting included also.
How can I get my project files to include Mac OS only items and not unix?
Re: .pro project file includes "unix" with "macx" defintions with qmake
Try
Code:
unix:!macx {
INCLUDEPATH += ./unix_stuff
}
Re: .pro project file includes "unix" with "macx" defintions with qmake
Thanks. That did the trick. Weird that it doesn't seem to be mentioned anywhere that Mac OS is regarded as also being Unix in qmake.
Re: .pro project file includes "unix" with "macx" defintions with qmake
Well... macos is a unix, so it should be understandable. I think it is mentioned somewhere, though. And as far as I remember for some macos based specs (xcode maybe?), unix scope won't trigger.