feat add CMAKE_POSITION_INDEPENDENT_CODE

This commit is contained in:
tqcq 2024-04-14 02:48:06 +08:00
parent 5b45b01611
commit 26c643d026

View File

@ -12,6 +12,7 @@ endif()
# set(CMAKE_C_FLAGS "-gdwarf-3 -gstrict-dwarf") set(CMAKE_CXX_FLAGS "-gdwarf-3
# -gstrict-dwarf")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
option(SLED_BUILD_BENCHMARK "Build benchmark" OFF)
option(SLED_BUILD_TESTS "Build tests" OFF)
option(SLED_BUILD_FUZZ "Build fuzzer test" OFF)