aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-02-19 19:33:10 +0100
committerStephen Kelly <steveire@gmail.com>2013-02-19 19:33:10 +0100
commit4ae2d3b6a2160c9582ee3745c431a2adb0d92e97 (patch)
treeb3ce5fdd474bdcefb9126f8674c8c5181527f437
parent8388b4f7365acecb2725babb7577759f054ce38d (diff)
downloadextra-cmake-modules-4ae2d3b6a2160c9582ee3745c431a2adb0d92e97.tar.gz
extra-cmake-modules-4ae2d3b6a2160c9582ee3745c431a2adb0d92e97.tar.bz2
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.
-rw-r--r--kde-modules/KDECompilerSettings.cmake5
1 files changed, 0 insertions, 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()