MantisBT - CMake
View Issue Details
0013902CMakeCMakepublic2013-02-08 14:172014-06-02 08:37
Stephen Kelly 
Stephen Kelly 
normalminorhave not tried
closedfixed 
CMake 2.8.11 
CMake 3.0 
0013902: target_link_libraries should not accept utility targets

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)
No tags attached.
Issue History
2013-02-08 14:17Stephen KellyNew Issue
2013-02-08 15:46Rolf Eike BeerNote Added: 0032238
2013-11-08 17:09Stephen KellyNote Added: 0034426
2013-11-08 17:09Stephen KellyStatusnew => resolved
2013-11-08 17:09Stephen KellyFixed in Version => CMake 3.0
2013-11-08 17:09Stephen KellyResolutionopen => fixed
2013-11-08 17:09Stephen KellyAssigned To => Stephen Kelly
2014-06-02 08:37Robert MaynardNote Added: 0036006
2014-06-02 08:37Robert MaynardStatusresolved => closed

Notes
(0032238)
Rolf Eike Beer   
2013-02-08 15:46   
I don't think that this could serve any useful purpose, so I would just make this an unconditional bug.
(0034426)
Stephen Kelly   
2013-11-08 17:09   
Done:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=596b2a8c [^]
(0036006)
Robert Maynard   
2014-06-02 08:37   
Closing resolved issues that have not been updated in more than 4 months.