diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake index 019a579a4a..262b60d171 100644 --- a/cmake/QtSetup.cmake +++ b/cmake/QtSetup.cmake @@ -119,6 +119,10 @@ endif() ## Position independent code: set(CMAKE_POSITION_INDEPENDENT_CODE ON) +# Does the linker support position independent code? +include(CheckPIESupported) +check_pie_supported() + # Do not relink dependent libraries when no header has changed: set(CMAKE_LINK_DEPENDS_NO_SHARED ON)