[CMake] Why is -fPIE added to my build?

Nils Gladitz nilsgladitz at gmail.com
Tue Jan 21 04:20:15 EST 2014


On 01/21/2014 10:05 AM, Schlottke, Michael wrote:
>
> However, I noticed that CMake adds the '-fPIE' flag to the compilation
> flags without me asking for it.

Maybe there is a set(CMAKE_POSITION_INDEPENDENT_CODE ON) in the project 
or the POSITION_INDEPENDENT_CODE property is set for the target itself?

Nils


More information about the CMake mailing list