Make code reallocable by using -fPIC
Opened this issue · 0 comments
massich commented
to do so we can set the position independent code property on all targets
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
or by target (in case you want do something different with .a
and .so
)
set_property(TARGET matio PROPERTY POSITION_INDEPENDENT_CODE ON)