summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessio M <masariello@gmail.com>2020-09-09 11:55:42 +0100
committerAlessio M <masariello@gmail.com>2020-09-09 11:55:42 +0100
commit3b68b5018e87ca259c5f5b5f6ee23b445c8fab14 (patch)
tree598067aaf4a5cc2804c7d742cbf3ada85c3550b6
parent2a5a57b90a57af5142221aa71f38c08f4a737376 (diff)
Enable position-independent code
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8b2e89a..12ef75b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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")