[Pkg-owncloud-commits] [qtkeychain] 45/63: Do not manually play with -fPIC

Sandro Knauß hefee at debian.org
Sat Jun 10 14:39:31 UTC 2017


This is an automated email from the git hooks/post-receive script.

hefee pushed a commit to branch master
in repository qtkeychain.

commit c1bf5846295dc9d12b438662f8a9391126b0543e
Author: Giuseppe D'Angelo <giuseppe.dangelo at kdab.com>
Date:   Mon Nov 14 09:42:56 2016 +0100

    Do not manually play with -fPIC
    
    We're already requesting CMake 2.8.11 so this block is not needed.
---
 CMakeLists.txt | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe11321..e5bea83 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,14 +60,6 @@ if (Qt5Core_FOUND)
   set(QTCORE_LIBRARIES ${Qt5Core_LIBRARIES})
   include_directories(${Qt5Core_INCLUDE_DIRS})
 
-  if (Qt5_POSITION_INDEPENDENT_CODE)
-    if (CMAKE_VERSION VERSION_LESS 2.8.9) # TODO remove once we increase the cmake requirement
-      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
-    else()
-      set(CMAKE_POSITION_INDEPENDENT_CODE ON)
-    endif()
-  endif()
-
   if (NOT Qt5Core_VERSION VERSION_LESS "5.7.0")
     if (CMAKE_COMPILER_IS_GNUCXX)
       if ((NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.7.0") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.1.0"))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/qtkeychain.git



More information about the Pkg-owncloud-commits mailing list