Skip to content

[cmake] enable position independent code by default

Martin Nolte requested to merge feature/enable-pic-by-default into master

This patch add an option CMAKE_POSITION_INDEPENDENT_CODE defaulting to ON, but only if BUILD_SHARED_LIBS is OFF. Otherwise we always build position independent code, anyway.

Merge request reports