MantisBT - CMake
View Issue Details
0016067CMakeCMakepublic2016-04-15 10:202016-06-10 14:21
Johannes S. Mueller-Roemer 
 
normalmajoralways
closedno change required 
x86-64Windows10
CMake 3.5.1 
 
0016067: $<TARGET_POLICY:*> generator expression evaluates to NEW instead of 1
When the $<TARGET_POLICY:*> generator expression is used, it should evaluate to 1 if the given policy is new and 0 if it is old, as documented here: https://cmake.org/cmake/help/v3.5/manual/cmake-generator-expressions.7.html [^]

However, with the current version of CMake it evaluates to NEW in the true case. I did not test the false case, which probably evaluates to OLD.
No tags attached.
Issue History
2016-04-15 10:20Johannes S. Mueller-RoemerNew Issue
2016-04-15 10:26Johannes S. Mueller-RoemerNote Added: 0040865
2016-04-15 10:28Brad KingStatusnew => resolved
2016-04-15 10:28Brad KingResolutionopen => no change required
2016-06-10 14:21Kitware RobotNote Added: 0041195
2016-06-10 14:21Kitware RobotStatusresolved => closed

Notes
(0040865)
Johannes S. Mueller-Roemer   
2016-04-15 10:26   
Please ignore this issue, the error was in our own CMake code.
(0041195)
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.