From e2e7bc61c9bd16c7ef86f04aff3bca0ab2c1d865 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Fri, 27 Jun 2014 20:21:30 +0100 Subject: [PATCH] [qt-certificate-addon] Build with PIC on Unix systems --- .../qt-certificate-addon/src/certificate/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thirdparty/qt-certificate-addon/src/certificate/CMakeLists.txt b/thirdparty/qt-certificate-addon/src/certificate/CMakeLists.txt index 743353647..332b00029 100644 --- a/thirdparty/qt-certificate-addon/src/certificate/CMakeLists.txt +++ b/thirdparty/qt-certificate-addon/src/certificate/CMakeLists.txt @@ -1,3 +1,7 @@ +if( NOT WIN32 ) + add_definitions( -fPIC ) +endif() + list(APPEND qtcertificateaddon_INCLUDE_DIRECTORIES ${QT_INCLUDES} ${QT_QTCORE_INCLUDE_DIR}