[cmake-developers] [CMake 0013902]: target_link_libraries should not accept utility targets
Mantis Bug Tracker
mantis at public.kitware.com
Fri Feb 8 14:17:47 EST 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13902
======================================================================
Reported By: Stephen Kelly
Assigned To:
======================================================================
Project: CMake
Issue ID: 13902
Category: CMake
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-02-08 14:17 EST
Last Modified: 2013-02-08 14:17 EST
======================================================================
Summary: target_link_libraries should not accept utility
targets
Description:
Code like this should throw an error. A policy will be needed for this.
add_custom_target(check ALL
COMMAND ${CMAKE_COMMAND} -E echo check
)
target_link_libraries(check somelib)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-02-08 14:17 Stephen Kelly New Issue
======================================================================
More information about the cmake-developers
mailing list