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                                    
======================================================================

-- 

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