From 83aa419348bba8706348e4e0dd601f8acba9eddb Mon Sep 17 00:00:00 2001 From: Bradley J Chambers Date: Wed, 20 Sep 2017 14:08:32 -0400 Subject: [PATCH] Set position independent code property on all targets --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b7efbb2..7c440bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.0.2) PROJECT(pubgeo) SET(CMAKE_CXX_STANDARD 11) +SET(CMAKE_POSITION_INDEPENDENT_CODE ON) IF(WIN32) MESSAGE(ERROR "Windows builds are currently not working due to erroneous linking errors.")