[cmake-developers] Setting include directories via target_link_libraries() ?

Stephen Kelly steveire at gmail.com
Tue Dec 18 10:24:26 EST 2012


Alexander Neundorf wrote:
> This would have the same effect, but people could simply hide the
> USE_INTERFACES keyword in a variable:
> set(Foo_LIBRARIES USE_INTERFACES Foo::FooLib)
> 
> and then it's again hidden:
> target_link_libraries(hello ${JPEG_LIBRARIES} ${Foo_LIBRARIES})

I don't see why anyone would do that. There are far more effective ways to 
make things hard for a user of a package.

Thanks,

Steve.





More information about the cmake-developers mailing list