From b99c3f3e65d60d023e4333ba57b63caa6dc2e0a5 Mon Sep 17 00:00:00 2001 From: tugluk Date: Fri, 16 Nov 2018 11:03:57 -0500 Subject: [PATCH] Added FPIC support --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c61393ad47..7a0bb9b649 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ endif() project(MGARD VERSION 0.1) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED True) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) # Default to a Release build if not specified if(NOT CMAKE_BUILD_TYPE)