From 4ae2d3b6a2160c9582ee3745c431a2adb0d92e97 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 19 Feb 2013 19:33:10 +0100 Subject: Remove configure check for -fPIE. CMake already knows the flag to use, and it is not always -fPIE. See the output of git grep CMAKE_C_COMPILE_OPTIONS_PIE in cmake for example. Therefore, there's no need to issue a message either. --- kde-modules/KDECompilerSettings.cmake | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kde-modules/KDECompilerSettings.cmake b/kde-modules/KDECompilerSettings.cmake index 16f8c858..873ba992 100644 --- a/kde-modules/KDECompilerSettings.cmake +++ b/kde-modules/KDECompilerSettings.cmake @@ -324,11 +324,6 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") # TODO : with CMake 2.8.11 this can be removed, it will work automatically if(Qt5_POSITION_INDEPENDENT_CODE) - check_cxx_compiler_flag(-fPIE __KDE_HAVE_FPIE_SUPPORT) - if(NOT __KDE_HAVE_FPIE_SUPPORT) - # Should we fail here ? - message(STATUS "Your compiler doesn't support the PIE flag") - endif() set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) endif() -- cgit v1.2.1