Re: [CMake] OBJECT libraries and INTERFACE_SOURCES

2016-12-08 Thread Stephen Kelly
Giovanni Funchal wrote: > Hi, > > The help page [1] mentions that: > >> Although object libraries may not be named directly in calls to the >> target_link_libraries() command, they can be “linked” indirectly by >> using an Interface Library whose INTERFACE_SOURCES target property >> is set to na

[CMake] OBJECT libraries and INTERFACE_SOURCES

2016-12-08 Thread Giovanni Funchal
Hi, The help page [1] mentions that: > Although object libraries may not be named directly in calls to the > target_link_libraries() command, they can be “linked” indirectly by > using an Interface Library whose INTERFACE_SOURCES target property > is set to name $. However, I was unable to get t

Re: [CMake] Does target order matter for dependencies?

2016-12-08 Thread Nils Gladitz
On 12/08/2016 04:01 PM, Robert Dailey wrote: When I define my targets (custom, library, executable), does the order of their declaration matter when it comes to using those targets in dependencies? It's difficult to explain, so I'll show an example: add_executable(foo main1.cpp) target_link_li

[CMake] Does target order matter for dependencies?

2016-12-08 Thread Robert Dailey
When I define my targets (custom, library, executable), does the order of their declaration matter when it comes to using those targets in dependencies? It's difficult to explain, so I'll show an example: add_executable(foo main1.cpp) target_link_libraries(foo abc) add_library(abc main2.cpp) In