Hi Daniele,

the feature about CMake language I probably hate most is link_directories(). 
Sadly one currently needs to use it when working with software dependencies 
imported from PkgConfig.

What I would like to get is the following: when a list of libraries and 
directories is returned by PkgConfig then for every of these libraries the 
absolute path to the library is determined using find_library() using the given 
directories as hints. With that, noone needs to use link_directories() 
anymore. Since this would introduce new behavior people would need to adapt 
their CMakeLists.txt to this new feature. Therefore I think it would be a good 
idea to expose this new information not by new variables, but using targets.

So if I search for OpenSSL using PkgConfig I would get a target 
PkgConfig::OpenSSL that I can link to, and that has the libraries, compile 
flags, include dirs and whatnot.

Sadly, I don't quite understand all the macros in FindPkgConfig.cmake. Can you 
either point me to the right place where I would hook up something like that 
or try doing it?

Greetings,

Eike

Attachment: signature.asc
Description: This is a digitally signed message part.

-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to