[cmake] enable position independent code by default
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.
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.