[phonon/phonon4qt5] cmake: Fix -fPIC/PIE issue - this needs to be done in any Qt5-based project, it seems.

David Faure faure at kde.org
Sun Jan 27 12:50:11 UTC 2013


Git commit f21f2fddbb261bec1ef36968e71091123c7078cd by David Faure.
Committed on 27/01/2013 at 13:52.
Pushed by dfaure into branch 'phonon4qt5'.

Fix -fPIC/PIE issue - this needs to be done in any Qt5-based project, it seems.

CCMAIL: kde-buildsystem at kde.org

M  +4    -0    cmake/FindPhononInternal.cmake

http://commits.kde.org/phonon/f21f2fddbb261bec1ef36968e71091123c7078cd

diff --git a/cmake/FindPhononInternal.cmake b/cmake/FindPhononInternal.cmake
index b4f708f..18bd05b 100644
--- a/cmake/FindPhononInternal.cmake
+++ b/cmake/FindPhononInternal.cmake
@@ -65,6 +65,10 @@ macro_log_feature(Qt5Gui_FOUND "Qt5 Gui (qtbase)" "" "" TRUE)
 find_package(Qt5Widgets REQUIRED)
 macro_log_feature(Qt5Widgets_FOUND "Qt5 Widgets (qtbase)" "" "" TRUE)
 
+if (Qt5_POSITION_INDEPENDENT_CODE)
+   set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+endif()
+
 # Compat variables for plugins.
 function(_QT4_QUERY_QMAKE VAR RESULT)
     get_target_property(QT_QMAKE_EXECUTABLE ${Qt5Core_QMAKE_EXECUTABLE} LOCATION)


More information about the Kde-buildsystem mailing list