diff options
author | Eike Ziller <eike.ziller@digia.com> | 2014-03-07 11:21:22 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2014-03-07 14:43:39 +0100 |
commit | 1911530f75344dccc6ba214d48157b78f0ca051b (patch) | |
tree | 88282d312993d7e02e792546bdae13349a964e31 /qtcreator.pri | |
parent | 59a026594b225fc9e6fd8d4ffa6ee128bf3349ed (diff) | |
download | qt-creator-1911530f75344dccc6ba214d48157b78f0ca051b.tar.gz |
Mac/Qt4: Allow compilation with macx-clang mkspec too
Change-Id: I91752859f790b5576db7ec8678c58924f643187c
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'qtcreator.pri')
-rw-r--r-- | qtcreator.pri | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qtcreator.pri b/qtcreator.pri index a5654f5aa7..1fbfc7ae02 100644 --- a/qtcreator.pri +++ b/qtcreator.pri @@ -10,7 +10,11 @@ isEqual(QT_MAJOR_VERSION, 5) { CONFIG += c++11 } else { macx { - !macx-clang-libc++: error("You need to use the macx-clang-libc++ mkspec to compile Qt Creator (call qmake with '-spec unsupported/macx-clang-libc++')") + !macx-clang*: error("You need to use the macx-clang or macx-clang-libc++ mkspec to compile Qt Creator (call qmake with '-spec unsupported/macx-clang')") + QMAKE_CFLAGS += -mmacosx-version-min=10.7 + QMAKE_CXXFLAGS += -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 + QMAKE_OBJECTIVE_CXXFLAGS += -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 + QMAKE_LFLAGS += -stdlib=libc++ -mmacosx-version-min=10.7 } else:linux-g++* { QMAKE_CXXFLAGS += -std=c++0x } else:linux-icc* { |