[cmake-developers] [CMake 0012254]: Hardcoded CMAKE_SYSTEM_LIBRARY_PATH is no good.

Mantis Bug Tracker mantis at public.kitware.com
Tue Jun 7 15:48:07 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12254 
====================================================================== 
Reported By:                Mikael Öhman
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12254
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-06-07 15:48 EDT
Last Modified:              2011-06-07 15:48 EDT
====================================================================== 
Summary:                    Hardcoded CMAKE_SYSTEM_LIBRARY_PATH is no good.
Description: 
The find_library function fails to find libraries not installed in the standard.

And old mailing list entry explained it well.
http://www.cmake.org/pipermail/cmake/2010-January/034747.html

I implemented the recursive checking of ld.so.conf, which fixed the problems for
me, and gives CMake a correct behavior on Linux systems.



Steps to Reproduce: 
1. Using Debian Sid. New version of glibc places libraries in
/usr/lib/x86_64-linux-gnu/ which is overlooked by find_library
2. Configure with CMake and FindMPI will fail to find many libraries such as
libld.so, libnsl.so etc.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-06-07 15:48 Mikael Öhman   New Issue                                    
2011-06-07 15:48 Mikael Öhman   File Added: UnixPaths.patch                    
======================================================================




More information about the cmake-developers mailing list