From c84885bc9f068188ecef925788f86db3ff77dab8 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Mon, 20 May 2019 12:59:06 +0200 Subject: [PATCH] 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(+) diff --git a/src/libs/3rdparty/cplusplus/CMakeLists.txt b/src/libs/3rdparty/cplusplus/CMakeLists.txt index c9c92817183..a33e96a1972 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 )