[cmake-developers] [CMake 0016067]: $<TARGET_POLICY:*> generator expression evaluates to NEW instead of 1

Mantis Bug Tracker mantis at public.kitware.com
Fri Apr 15 10:20:09 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16067 
====================================================================== 
Reported By:                Johannes S. Mueller-Roemer
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16067
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-04-15 10:20 EDT
Last Modified:              2016-04-15 10:20 EDT
====================================================================== 
Summary:                    $<TARGET_POLICY:*> generator expression evaluates to
NEW instead of 1
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-04-15 10:20 Johannes S. Mueller-RoemerNew Issue                            
       
======================================================================



More information about the cmake-developers mailing list