The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=12534 ====================================================================== Reported By: Lars Viklund Assigned To: ====================================================================== Project: CMake Issue ID: 12534 Category: CMake Reproducibility: N/A Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2011-10-22 02:26 EDT Last Modified: 2011-10-22 02:26 EDT ====================================================================== Summary: Accumulate library paths from ld.so.conf Description: It was discussed on the list in January 2011 whether to add paths from /etc/ld.so.conf to the library search path, but no conclusion was made.
As Ubuntu 11.10 uses this functionality for rather common libraries (libGL.so), I've hacked up some rudimentary functionality for Platform/UnixPaths.cmake to traverse the includes in ld.so.conf and accumulate the paths there into CMAKE_SYSTEM_LIBRARY_PATH. It's works-for-me grade code that probably needs better handling of comments, whitespace and missing entries. This is needed eventually as ld.so.conf will not go away, and as you cannot enumerate all the locations all distros will put libraries in. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-10-22 02:26 Lars Viklund New Issue 2011-10-22 02:26 Lars Viklund File Added: ld.so.txt ====================================================================== -- 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