1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-08 19:41:33 +03:00

cmake: Always build position independent code

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider 2018-10-02 14:44:25 +02:00
parent 096d966e43
commit f09ca85ebf

View File

@ -16,3 +16,6 @@ set(CMAKE_COLOR_MAKEFILE ON)
# Create the compile command database for clang by default # Create the compile command database for clang by default
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Always build with -fPIC
set(CMAKE_POSITION_INDEPENDENT_CODE ON)