From 14e49ed15615e7f2bcb58aa4540683250006f5c7 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Mon, 29 Dec 2014 20:47:48 -0500 Subject: if: Add "TEST " condition if(TEST TestNameThatExists) will return true if a test with the name TestNameThatExists has been added with add_test. The syntax is similar to if(TARGET TargetName). Since use of "TEST" as an argument to if() could previously be interpreted as a non-keyword argument, add policy CMP0064 to treat it as a keyword as NEW behavior. --- Source/cmPolicies.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/cmPolicies.h') diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index b78370166d..a791b89dc6 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -217,6 +217,9 @@ class cmPolicy; 3, 3, 0, cmPolicies::WARN) \ SELECT(POLICY, CMP0063, \ "Honor visibility properties for all target types.", \ + 3, 3, 0, cmPolicies::WARN) \ + SELECT(POLICY, CMP0064, \ + "Support new TEST if() operator.", \ 3, 3, 0, cmPolicies::WARN) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) -- cgit v1.2.1