diff options
author | Matt McCormick <matt.mccormick@kitware.com> | 2014-12-30 01:47:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-08-03 13:22:25 (GMT) |
commit | 14e49ed15615e7f2bcb58aa4540683250006f5c7 (patch) | |
tree | fad463f1cb96d9da2ee65bee42e8e6a251aec971 /Source/cmPolicies.h | |
parent | 623dcc85a447b9ce0f09cffa8cd296cd8a51ad9d (diff) | |
download | CMake-14e49ed15615e7f2bcb58aa4540683250006f5c7.zip CMake-14e49ed15615e7f2bcb58aa4540683250006f5c7.tar.gz CMake-14e49ed15615e7f2bcb58aa4540683250006f5c7.tar.bz2 |
if: Add "TEST <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.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index b783701..a791b89 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) |