[cmake-developers] [CMake 0013876]: Use of LINK_PRIVATE in target_link_libraries(...) cause all libaries to be linked private
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jan 24 14:50:07 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13876
======================================================================
Reported By: Chris Harris
Assigned To:
======================================================================
Project: CMake
Issue ID: 13876
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-01-24 14:50 EST
Last Modified: 2013-01-24 14:50 EST
======================================================================
Summary: Use of LINK_PRIVATE in target_link_libraries(...)
cause all libaries to be linked private
Description:
Given the following CMake code:
target_link_libraries(AvogadroIO AvogadroCore)
target_link_libraries(AvogadroIO LINK_PRIVATE hdf5)
The LINK_PRIVATE is also applied to AvogadroCore. The workaround is to add
LINK_PUBLIC:
target_link_libraries(AvogadroIO LINK_PUBLIC AvogadroCore)
target_link_libraries(AvogadroIO LINK_PRIVATE hdf5)
Steps to Reproduce:
The following dashboard entry demonstrates this failure:
http://cdash.openchemistry.org/viewBuildError.php?buildid=5638
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-01-24 14:50 Chris Harris New Issue
======================================================================
More information about the cmake-developers
mailing list