summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-06-08 15:54:03 (GMT)
committerBrad King <brad.king@kitware.com>2017-06-09 14:38:43 (GMT)
commit82be694c7a1a878650563cd2c72b60f314d5dc85 (patch)
tree7ab8aa180d53af798fc19598874543ac2e98fd68 /Source/cmPolicies.h
parent69050f4d16ae649e074b5fd7cb3bae1811b403a8 (diff)
downloadCMake-82be694c7a1a878650563cd2c72b60f314d5dc85.zip
CMake-82be694c7a1a878650563cd2c72b60f314d5dc85.tar.gz
CMake-82be694c7a1a878650563cd2c72b60f314d5dc85.tar.bz2
file(GENERATE): Add policy CMP0070 to define relative path behavior
Previously `file(GENERATE)` did not define any behavior for relative paths given to the `OUTPUT` or `INPUT` arguments. Define behavior consistent with CMake conventions and add a policy to provide compatibility for projects that relied on the old accidental behavior. Fixes: #16786
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 69cbc18..0a0178c 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -206,6 +206,9 @@ class cmMakefile;
cmPolicies::WARN) \
SELECT(POLICY, CMP0069, \
"INTERPROCEDURAL_OPTIMIZATION is enforced when enabled.", 3, 9, 0, \
+ cmPolicies::WARN) \
+ SELECT(POLICY, CMP0070, \
+ "Define file(GENERATE) behavior for relative paths.", 3, 10, 0, \
cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)