summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0795081..49cf388 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
+cmake_minimum_required(VERSION 2.8.9 FATAL_ERROR)
project(clsocket)
# set up versioning.
@@ -67,6 +67,7 @@ else()
else()
ADD_LIBRARY(clsocket STATIC ${CLSOCKET_SOURCES})
endif()
+ set_target_properties(clsocket PROPERTIES POSITION_INDEPENDENT_CODE True)
endif()
TARGET_LINK_LIBRARIES(clsocket ${PROJECT_LIBS})