AcademySoftwareFoundation / OpenColorIO

A color management framework for visual effects and animation.
https://opencolorio.org
BSD 3-Clause "New" or "Revised" License
1.76k stars 434 forks source link

Add build support for PIE code generation for executables #1871

Open KevinJW opened 11 months ago

KevinJW commented 11 months ago

As per the discussion #1857 add a configuration option to build executables as PIE.

Note, I looked at applying the position independence at a specific cmake target level but after tracing though the dependencies this top level adjustment is basically the same but fewer lines of CMake, i.e. we need to set the flag for all object files used in a given executable.

Signed-off-by: Kevin Wheatley kevin.wheatley@framestore.com