X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=CMakeLists.txt;h=ff4b909c293507591cd1496f227b2478fe12b05e;hp=62b04912a069efc299dbebfdbd7b25039c634e85;hb=refs%2Fheads%2Fmaster;hpb=fd6012176bef7aee91b15030530630679c46c2b5 diff --git a/CMakeLists.txt b/CMakeLists.txt index 62b0491..16aec16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright 2022-2023 Soren Stoutner . # -# This file is part of Privacy Browser PC . +# This file is part of Privacy Browser PC . # # Privacy Browser PC is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -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