path: root/mkspecs
diff options
authorTor Arne Vestbø <>2013-02-18 11:05:44 +0100
committerThe Qt Project <>2013-02-20 00:46:50 +0100
commitc3a5681225fa332dd2b2ac3c08b00c670e0a2d82 (patch)
tree609c0eb66f13e114379c104073bd17f134459ac0 /mkspecs
parent443380d97f43e81c60377ce9b698756a70c4d1f9 (diff)
Always build against an SDK on Mac OS
Building against the local /System can cause build issues when for example the headers have not been updated to reflect the system version. The system headers are updated as part of installing the command line tools from within Xcode, not as part of the system update process, so we might think we are on 10.8, but the system headers will not reflect that, and we get build breaks. It's preferable to always build against an SDK, so that we have a known state for the OS X libraries and headers. We choose the latests SDK by default, as recommended by Apple. Change-Id: I79028217ff3a9cbe45aa4cb05ed6dd90388dee50 Reviewed-by: Tor Arne Vestbø <>
Diffstat (limited to 'mkspecs')
1 files changed, 2 insertions, 0 deletions
diff --git a/mkspecs/common/mac.conf b/mkspecs/common/mac.conf
index 57719e003f..5f5ed80e4d 100644
--- a/mkspecs/common/mac.conf
+++ b/mkspecs/common/mac.conf
@@ -7,6 +7,8 @@
QMAKE_PLATFORM += macx mac
+isEmpty(QMAKE_MAC_SDK): QMAKE_MAC_SDK = macosx
QMAKE_RESOURCE = /Developer/Tools/Rez