diff --git a/CMakeLists.txt b/CMakeLists.txt index 77df76da7..111cddb78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR) project(tensorpipe LANGUAGES C CXX) set(CMAKE_CXX_STANDARD 14) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")