Skip to content

Commit a963723

Browse files
make all built binaries position-independent
1 parent 8783ca2 commit a963723

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ if( WITH_OMP_BACKEND OR WITH_HYBRID_BACKEND )
280280
set( WITH_OMP_BACKEND_HEADERS ON )
281281
endif()
282282

283+
# set all compiled binaries to be Position-Independent
284+
set( CMAKE_POSITION_INDEPENDENT_CODE ON )
285+
283286
add_subdirectory( include )
284287

285288
### BACKEND IMPLEMENTATIONS

0 commit comments

Comments
 (0)