diff options
author | Brad King <brad.king@kitware.com> | 2009-06-17 17:40:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-17 17:40:09 (GMT) |
commit | c790b1fabbc7b160bd67e1654a34964fd897a36c (patch) | |
tree | 35af1a3c2f59d02c85f3fd1908b9fbde32b0e75c /Source/cmPolicies.h | |
parent | f61f8e538383ee632aafc7ac74cd1d118288b310 (diff) | |
download | CMake-c790b1fabbc7b160bd67e1654a34964fd897a36c.zip CMake-c790b1fabbc7b160bd67e1654a34964fd897a36c.tar.gz CMake-c790b1fabbc7b160bd67e1654a34964fd897a36c.tar.bz2 |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index 43b1934..391b91c 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. |