diff options
author | Kevin Funk <kevin.funk@kdab.com> | 2015-11-02 09:41:01 +0100 |
---|---|---|
committer | Kevin Funk <kfunk@kde.org> | 2015-12-28 22:39:58 +0000 |
commit | 9871c3d8bd71ab265d7394495a3a9f0c2963f6ab (patch) | |
tree | d383e053a27868f3c14bdbd1ac6b2d58314eab98 /mkspecs/winrt-arm-msvc2013 | |
parent | 959f09bbc5757bc42db603b2c085ad46fc12af96 (diff) |
CMake: Add -fPIC to CXX flags only where necessary
Before this patch, Qt5Core_EXECUTABLE_COMPILE_FLAGS was populated with
-fPIC unconditionally. This causes warnings on MSVC, since the compiler
does not understand this flag.
In fact, -fPIC is only required in case an older release of CMake is
being used and the compiler is GCC 5.x (according to documentation), so
let's really add it just in this case.
Task-number: QTBUG-47942
Change-Id: I9d09b8b257a0647235d6d781ee5c023af34f8f88
Reviewed-by: Stephen Kelly <steveire@gmail.com>
Diffstat (limited to 'mkspecs/winrt-arm-msvc2013')
0 files changed, 0 insertions, 0 deletions