Enable position-independent code

This commit is contained in:
Alessio M 2020-09-09 11:55:42 +01:00
parent 2a5a57b90a
commit 3b68b5018e
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ PROJECT(hiredis VERSION "${VERSION}")
# Hiredis requires C99
SET(CMAKE_C_STANDARD 99)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
SET(ENABLE_EXAMPLES OFF CACHE BOOL "Enable building hiredis examples")