summaryrefslogtreecommitdiff
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-17 13:40:09 -0400
committerBrad King <brad.king@kitware.com>2009-06-17 13:40:09 -0400
commitc790b1fabbc7b160bd67e1654a34964fd897a36c (patch)
tree35af1a3c2f59d02c85f3fd1908b9fbde32b0e75c /Source/cmPolicies.h
parentf61f8e538383ee632aafc7ac74cd1d118288b310 (diff)
downloadcmake-c790b1fabbc7b160bd67e1654a34964fd897a36c.tar.gz
ENH: Create CMP0013 to disallow duplicate dirs
In CMake 2.6.3 and below we silently accepted duplicate build directories whose build files would then conflict. At first this was considured purely a bug that confused beginners but would not be used in a real project. In CMake 2.6.4 we explicitly made it an error. However, some real projects took advantage of this as a "feature" and got lucky that the subtle build errors it can cause did not occur. Therefore we need a policy to deal with the case more gracefully. See issue #9173.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 43b193411c..391b91c44c 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -53,6 +53,7 @@ public:
CMP0010, // Bad variable reference syntax is an error
CMP0011, // Strong policy scope for include and find_package
CMP0012, // Strong handling of boolean constants
+ CMP0013, // Duplicate binary directories not allowed
// Always the last entry. Useful mostly to avoid adding a comma
// the last policy when adding a new one.