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)