Skip to content

Commit

Permalink
added CMAKE_POSITION_INDEPENDENT_CODE -fPIC
Browse files Browse the repository at this point in the history
  • Loading branch information
randaz81 committed Sep 5, 2023
1 parent 0b2c2b7 commit bc49543
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ set_property(GLOBAL PROPERTY AUTOGEN_SOURCE_GROUP "Generated Files")
# See cmake/YarpOptions.cmake.
#include(YarpOptions)

#########################################################################
# Compile libraries using -fPIC to produce position independent code.
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

#########################################################################
# Control whether libraries are shared or static (imported from YarpOptions)

Expand Down

0 comments on commit bc49543

Please sign in to comment.