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/cmMakefile.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/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index 5efe2d9..7a235f9 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -900,6 +900,8 @@ private: bool ParseDefineFlag(std::string const& definition, bool remove); + bool EnforceUniqueDir(const char* srcPath, const char* binPath); + void ReadSources(std::ifstream& fin, bool t); friend class cmMakeDepend; // make depend needs direct access // to the Sources array |