From c84885bc9f068188ecef925788f86db3ff77dab8 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Mon, 20 May 2019 12:59:06 +0200 Subject: CMake build: Fix PIC issue with 3rd_cplusplus 3rd_cplusplus is an OBJECT library, which will end up into CPlusPlus, which is a shared library, it's safe to set PIC to ON. Fixes https://bugreports.qt.io/browse/QTCREATORBUG-22465 Change-Id: I6ef9bf8c73102a3a5996c0fee7b1fe25e6aa677f Reviewed-by: Tobias Hunger --- src/libs/3rdparty/cplusplus/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libs/3rdparty') diff --git a/src/libs/3rdparty/cplusplus/CMakeLists.txt b/src/libs/3rdparty/cplusplus/CMakeLists.txt index c9c9281718..a33e96a197 100644 --- a/src/libs/3rdparty/cplusplus/CMakeLists.txt +++ b/src/libs/3rdparty/cplusplus/CMakeLists.txt @@ -42,4 +42,5 @@ add_qtc_library(3rd_cplusplus OBJECT Type.cpp Type.h TypeVisitor.cpp TypeVisitor.h cppassert.h + PROPERTIES POSITION_INDEPENDENT_CODE ON ) -- cgit v1.2.3