On 2019 M02 12, Tue 08:34:57 CET Timothy Wrona wrote: > I saw this email come through the cmake users mailing list but feel it is > more fitting for it to go to cmake-developers so I'm forwarding it here. > > It is a pretty long rant, but I think his idea to add a keyword to the > "target_link_libraries()" command that would only look for cmake targets is > a pretty great idea. I dont think it would break backwards compatibility > either. > > For example: > > target_link_libraries(mytarget > LINK_TARGETS > target1 > target1 > ) > > This would only search for CMake targets to link to and would not search > for libraries with the same name. It would make adding alias namespace to > targets not necessary anymore and would potentially make a lot of code look > cleaner.
(I already replied on the cmake-list before I saw this here). I would prefer if this could be combined with the include-directories via linking feature. E.g. a command target_link_targets() which accepts only targets, and which has the include-directories features, and a policy to disable the include- directories via target_link_libraries(). Alex -- 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: https://cmake.org/mailman/listinfo/cmake-developers