Enable PIE support by default

This commit is contained in:
Jonathan Steffan
2024-03-17 10:06:29 +01:00
committed by xytovl
parent c15f2b9149
commit 8db2866fe1
+5
View File
@@ -12,6 +12,11 @@ endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 20)
# Default to PIC code
include(CheckPIESupported)
check_pie_supported()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
include(FetchContent)
include(ExternalProject)
include(GNUInstallDirs)