[cmake-developers] [CMake 0013866]: target_link_libraries does threats '-Wl, --whole-library -lmy_lib -Wl, --no-whole-library' entirely as linker flags
Mantis Bug Tracker
mantis at public.kitware.com
Tue Jan 22 02:11:07 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=13866
======================================================================
Reported By: Alexey Pelykh
Assigned To:
======================================================================
Project: CMake
Issue ID: 13866
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-01-22 02:11 EST
Last Modified: 2013-01-22 02:11 EST
======================================================================
Summary: target_link_libraries does threats
'-Wl,--whole-library -lmy_lib -Wl,--no-whole-library' entirely as linker flags
Description:
According to documentation:
If a library name matches that of another target in the project a dependency
will automatically be added in the build system to make sure the library being
linked is up-to-date before the target links. Item names starting with '-', but
not '-l' or '-framework', are treated as linker flags.
-lmy_lib must be understood by CMake as library reference, but it does not,
since my_lib dependencies (LINK_PUBLIC"ed in my_lib project) does not appear in
linking phase of host project
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-01-22 02:11 Alexey Pelykh New Issue
======================================================================
More information about the cmake-developers
mailing list