[cmake-developers] [CMake 0015823]: FIND_LIBRARY & TARGET_LINK_LIBRARIES
Mantis Bug Tracker
mantis at public.kitware.com
Sat Oct 31 14:46:06 EDT 2015
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=15823
======================================================================
Reported By: Anthony Ette
Assigned To:
======================================================================
Project: CMake
Issue ID: 15823
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-10-31 14:46 EDT
Last Modified: 2015-10-31 14:46 EDT
======================================================================
Summary: FIND_LIBRARY & TARGET_LINK_LIBRARIES
Description:
On version 3.3.20150618.
I am not understanding the behavior of these two commands or am getting
inconsistent results. Sometimes when the results of a found static library from
FIND_LIBRARY are passed to TARGET_LINK_LIBRARIES, it generates "/path/to/lib"
linker syntax BUT other times it produces a "-Wl,-Bstatic -llib -Wl,-Bdynamic"
syntax. I've confirmed that both lib vars as returned from FIND_LIBRARY are
full paths to .a static archive files so how can the different handling at the
linker CLI be explained?
Steps to Reproduce:
Unknown. Some libs are handled one way and others are handled another. The
only potential lead may be that they come from different paths on the file
system (say one from /usr/lib and another from /sim/lib/v67/ihawk).
Additional Information:
None
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-10-31 14:46 Anthony Ette New Issue
======================================================================
More information about the cmake-developers
mailing list