[CMake] Xcode generator linker flags

Michael Wild themiwi at gmail.com
Wed Apr 14 04:42:20 EDT 2010


On 14. Jan, 2010, at 16:46 , Michael Wild wrote:

> 
> On 14. Jan, 2010, at 16:18 , Michael Wild wrote:
> 
>> Hi all
>> 
>> I think that the Xcode generate is buggy as the linker flags are not inherited from the compile flags as they do in the Unix Makefile generator. Is this known/fixed/intentional or should I report a bug?
>> 
>> Michael
> 
> Setting CMAKE_{SHARED,EXE,MODULE}_LINKER_FLAGS explicitly works but it seems that there is another bug, preventing custom configurations to work with shared libraries. The flags of CMAKE_EXE_LINKER_FLAGS_CUSTOM get applied to the executable when using configuration Custom, but CMAKE_SHARED_LINKER_FLAGS_CUSTOM are ignored for the shared libraries.
> 
> Michael


Actually, it's worse: http://cmake.org/Bug/view.php?id=10552

The Xcode generator does not inherit any compile-flags for the linker-flags and completely ignores configuration-specific linker flags for shared libraries (CMAKE_SHARED_LINKER_FLAGS_<CONFIG>).

Michael


More information about the CMake mailing list