Build position independent code (-fPIC).

This commit is contained in:
tastytea 2020-11-13 22:08:02 +01:00
parent 5af456a18b
commit e3b5476d7e
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ set_target_properties(${PROJECT_NAME}
PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF)
CXX_EXTENSIONS OFF
POSITION_INDEPENDENT_CODE ON)
# FindCURL provides an IMPORTED target since CMake 3.12.
if(NOT ${CMAKE_VERSION} VERSION_LESS 3.12)