diff options
author | George Kiagiadakis <gkiagia@tolabaki.gr> | 2016-06-21 15:30:34 +0300 |
---|---|---|
committer | Alexandr Akulich <akulichalexander@gmail.com> | 2016-08-27 11:39:55 +0500 |
commit | 339467dbb3331facbbbdb94183793282d56cf5aa (patch) | |
tree | fd5b6169144a1b31e47553f91af04b825acd0de7 /cmake | |
parent | 8de45eb7c30677eb34b8054a5b06e4f1899f3937 (diff) |
FindQt5.cmake: remove hardcoded -fPIC flag
This was probably needed because the pkgconfig check for QtCore
was failing, so the code in CMakeLists.txt that adds -fPIC and -fPIE
in the flags was never executed.
Currently, -fPIC and -fPIE are added when 'reduce_relocations' is present
in the qt_config flags in Qt5Core.pc
Reviewed-by: Alexandr Akulich <akulichalexander@gmail.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/FindQt5.cmake | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmake/modules/FindQt5.cmake b/cmake/modules/FindQt5.cmake index c4db9c56..b9a35e16 100644 --- a/cmake/modules/FindQt5.cmake +++ b/cmake/modules/FindQt5.cmake @@ -127,8 +127,6 @@ EXECUTE_PROCESS(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable qt_config Qt5Core RESULT_VARIABLE _pkgconfig_failed) STRING(REPLACE " " ";" QT_CONFIG_FLAGS "${_pkgconfig_flags}") -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") - INCLUDE(Qt5Macros) SET(QT_FOUND TRUE) |