Yes, that's it, thank you! I thought the flag only affects library builds, but apparently not.
Michael On Jan 21, 2014, at 10:20 , Nils Gladitz wrote: > 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 -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
