On 10/11/2013 03:34 PM, Rolf Eike Beer wrote:
> Can we do something against link_directories, please? This is a common
> pitfall
> for everyone coming from plain Makefiles and probably other people, too.
I'd love to do so but the command still has a real purpose.
Find modules can return MYPKG_LIBRARY_DIRS with a list of
directories and MYPKG_LIBRARIES with a list of libraries by
name rather than full path. The only way to use these is
find_package(MYPKG)
link_directories(${MYPKG_LIBRARY_DIRS})
target_link_libraries(myexe ${MYPKG_LIBRARIES})
-Brad
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers