MantisBT - CMake
View Issue Details
0014808CMakeCMakepublic2014-03-14 11:362014-10-06 10:32
Michał Cichoń 
Stephen Kelly 
normalminoralways
closedfixed 
PCWindows7 x64
CMake 3.0 
CMake 3.0CMake 3.0 
0014808: Policy CMP0026 set OLD not working for <CONFIG>_LOCATION
CMake is no longer able to return <CONFIG>_LOCATION even if policy is explicitly set. Instead LOCATION_<CONFIG> return desired values. Backward compatibility therefore is broken.
Call on any target:
get_target_property(result <target_name> DEBUG_LOCATION)

You will get: result-NOTFOUND
Sould be: path to location for debug configuration.
No tags attached.
Issue History
2014-03-14 11:36Michał CichońNew Issue
2014-03-14 11:42Brad KingAssigned To => Stephen Kelly
2014-03-14 11:42Brad KingStatusnew => assigned
2014-03-14 11:42Brad KingNote Added: 0035408
2014-03-14 11:42Brad KingNote Edited: 0035408bug_revision_view_page.php?bugnote_id=35408#r1401
2014-03-14 11:44Brad KingNote Added: 0035409
2014-03-14 11:47Brad KingSummaryPolicy CMP0026 set OLD not working => Policy CMP0026 set OLD not working for <CONFIG>_LOCATION
2014-03-17 10:05Brad KingNote Added: 0035418
2014-03-17 10:05Brad KingStatusassigned => resolved
2014-03-17 10:05Brad KingResolutionopen => fixed
2014-03-17 10:05Brad KingProduct Version => CMake 3.0
2014-03-17 10:05Brad KingFixed in Version => CMake 3.0
2014-03-17 10:05Brad KingTarget Version => CMake 3.0
2014-10-06 10:32Robert MaynardNote Added: 0036945
2014-10-06 10:32Robert MaynardStatusresolved => closed

Notes
(0035408)
Brad King   
2014-03-14 11:42   
It was dropped here:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a55c70de [^]

(0035409)
Brad King   
2014-03-14 11:44   
Steve, this is a regression. It doesn't matter whether it was documented before: it worked. It needs to be folded in to the old behavior of the policy.
(0035418)
Brad King   
2014-03-17 10:05   
Fixed:

 cmTarget: Restore <CONFIG>_LOCATION to CMP0026 OLD behavior
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c903b531 [^]

This will be in 3.0.0-rc2.
(0036945)
Robert Maynard   
2014-10-06 10:32   
Closing resolved issues that have not been updated in more than 4 months.