MantisBT - CMake
View Issue Details
0015936CMakeModulespublic2016-01-26 06:502016-06-10 14:21
Erik Hanspers 
Brad King 
normalminoralways
closedfixed 
 
CMake 3.5CMake 3.5 
0015936: UseJava add_jar incorrect documentation for target property
The UseJava module documents a CLASS_DIR target property being set. The code actually sets a property CLASSDIR, without the underscore.
add_jar(foo SOURCES blah.java)

get_target_property(foo_classdir foo CLASS_DIR) -> not set
get_target_property(foo_classdir foo CLASSIER) -> we got the path!
Suggest revising documentation not to break currently successful use of the CLASSDIR property.
No tags attached.
Issue History
2016-01-26 06:50Erik HanspersNew Issue
2016-01-26 06:53Erik HanspersNote Added: 0040325
2016-01-26 09:35Brad KingNote Added: 0040326
2016-01-26 09:35Brad KingAssigned To => Brad King
2016-01-26 09:35Brad KingStatusnew => resolved
2016-01-26 09:35Brad KingResolutionopen => fixed
2016-01-26 09:35Brad KingFixed in Version => CMake 3.5
2016-01-26 09:35Brad KingTarget Version => CMake 3.5
2016-06-10 14:21Kitware RobotNote Added: 0041275
2016-06-10 14:21Kitware RobotStatusresolved => closed

Notes
(0040325)
Erik Hanspers   
2016-01-26 06:53   
In the steps to reproduce my spelling correction helpfully suggested CLASSIER, where I wanted CLASSDIR which would've been the correct and working example.
Sorry 'bout that.
(0040326)
Brad King   
2016-01-26 09:35   
Thanks for pointing this out. Fixed:

 UseJava: Fix documented name of `CLASSDIR` property
 https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1053db7b [^]
(0041275)
Kitware Robot   
2016-06-10 14:21   
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.