Build position independent code (-fPIC).
This commit is contained in:
parent
5af456a18b
commit
e3b5476d7e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue