X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=CMakeLists.txt;fp=CMakeLists.txt;h=42b28dd527ca4dd9ae1208fe41b3e56abfdbbdc5;hp=62b04912a069efc299dbebfdbd7b25039c634e85;hb=5459c24d9234b0973a1f0709f35391c6ccfe0c6f;hpb=c8dd222118f460f3cbcd15678597c3a3f4f986b2 diff --git a/CMakeLists.txt b/CMakeLists.txt index 62b0491..42b28dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,15 @@ include(ECMInstallIcons) include(ECMQtDeclareLoggingCategory) include(FeatureSummary) +# Include the Position Independent Executable checker. +include(CheckPIESupported) + +# Check to see if Position Independent Executable is supported in the current linker and environment. +check_pie_supported() + +# Add the Position Independent Executable compiler flag if it is supported in the current linker and environment. +set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) + # Load the Qt components. find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core