Skip to content

Commit

Permalink
Set Position independent code in CMake
Browse files Browse the repository at this point in the history
Static builds of PyTorch get further along.
Partially fixes pytorch#449
  • Loading branch information
powderluv committed Jun 10, 2022
1 parent 52791a2 commit 6589c54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 6589c54

Please sign in to comment.