[CMake] Unix makefiles feature request

Robert Bielik robert.bielik at xponaut.se
Wed Jun 24 12:14:23 EDT 2009


Tyler Roscoe skrev:
> On Wed, Jun 24, 2009 at 11:38:56AM -0400, Brad King wrote:
>> Flags can be passed to target_link_libraries too:
>>
>>   add_library(A STATIC a.c)
>>   add_library(B STATIC b.c)
>>   add_executable(main main.c)
>>   target_link_libraries(main -Wl,--start-group A B -Wl,--end-group)
> 
> This is cool and I did not know it. I also don't see it in the
> documentation. Maybe you could add an example similar to what you wrote
> above to the docs for target_link_libraries()?

Cool, works for me! :)

/Rob



More information about the CMake mailing list