The following issue has been SUBMITTED. ====================================================================== https://cmake.org/Bug/view.php?id=16002 ====================================================================== Reported By: Jordan Assigned To: ====================================================================== Project: CMake Issue ID: 16002 Category: CMake Reproducibility: always Severity: block Priority: normal Status: new ====================================================================== Date Submitted: 2016-03-02 09:05 EST Last Modified: 2016-03-02 09:05 EST ====================================================================== Summary: CMake strips -fPIC from executable compilation which blocks the use of Qt5 and GCC5 Description: I understand this case https://cmake.org/Bug/view.php?id=9659. However, Qt5 and GCC 5 are now forcing fPIC on all compilation. I have brought this to QT's attention with https://bugreports.qt.io/browse/QTBUG-51593, but they say the policy will not change. As far as I can tell there is no way to apply fPIC to the executable. It appears to be stripped from the CMAKE_CXX_FLAGS. This blocks the use of Qt5 and GCC5.
Steps to Reproduce: Take prebuild Qt-5.4.1 or new. Use GCC-5 or newer. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2016-03-02 09:05 Jordan New Issue ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
