additional linker flags may be necessary even if POSITION_INDEPENDENT_CODE is OFF
when applied to executables setting property POSITION_INDEPENDENT_CODE to ON leads to creation of position-independent executables (PIE). Some platforms (OS X) and/or compilers (gcc6) do or can be configured to create position-independent executables by default (e.g. see recent Ubuntu). Some codes rely on disabled PIE, and it is logical to do this by setting POSITION_INDEPENDENT_CODE target property to OFF. However, this does not work since setting property POSITION_INDEPENDENT_CODE to OFF for executables may require additional linker flags (-no_pie on OS X, -no-pie gcc5+ option, etc.). The additional linker flags are not currently added by CMake, i.e., POSITION_INDEPENDENT_CODE does not fully control the PIE/non-PIE behavior.
p.s. INTERFACE_POSITION_INDEPENDENT_CODE needs to handle this also.