[cmake-developers] [CMake 0015938]: RPATHs missing on link line for versioned libraries (.so.MAJOR.MINOR.PATCH)
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jan 28 04:30:15 EST 2016
The following issue has been SUBMITTED.
======================================================================
https://cmake.org/Bug/view.php?id=15938
======================================================================
Reported By: Florian Rathgeber
Assigned To:
======================================================================
Project: CMake
Issue ID: 15938
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2016-01-28 09:30 GMT
Last Modified: 2016-01-28 09:30 GMT
======================================================================
Summary: RPATHs missing on link line for versioned libraries
(.so.MAJOR.MINOR.PATCH)
Description:
When linking against a library using the *full path* to a *versioned* .so file,
the RPATH (-Wl,-rpath,/full/path or equivalent) is missing from the link line.
It *does* work when using the non-versioned library ending in .so
Steps to Reproduce:
Build CGAL 4.7, which exports libCGAL.so.11.0.1 as CGAL_LIBRARY in its
CGALExports.cmake
Use in your CMake project similar to the following:
...
find_package( CGAL REQUIRED )
...
target_link_libraries( my_exe ${CGAL_LIBRARY} )
Additional Information:
Looks like a "parser error" to me, potentially regex too narrow?
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2016-01-28 09:30 Florian RathgeberNew Issue
======================================================================
More information about the cmake-developers
mailing list