Building position independant code is the default behavior for CMake when compiling shared library targets.