diff options
author | Brad King <brad.king@kitware.com> | 2009-09-02 20:07:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-02 20:07:12 (GMT) |
commit | 0e8c7859c88ae0fb2ada03d691a1f5e0e802742b (patch) | |
tree | c3c758275df827b7b1f2f4f100dddddad06c96aa /Source/cmLocalVisualStudio6Generator.cxx | |
parent | 0af3b3b8028bfe01621887d115dfbdcd3890e602 (diff) | |
download | CMake-0e8c7859c88ae0fb2ada03d691a1f5e0e802742b.zip CMake-0e8c7859c88ae0fb2ada03d691a1f5e0e802742b.tar.gz CMake-0e8c7859c88ae0fb2ada03d691a1f5e0e802742b.tar.bz2 |
Silence VS generator for missing CMakeLists.txt
CMake Makefile generators silently ignore missing CMakeLists.txt files
and just treat the source directory as if it had an empty input file.
This will be addressed with a new CMake Policy, but for now we make the
VS generator consistent with the Makefile generator behavior. The VS
generator will need to handle the OLD behavior of the policy anyway.
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index ca8d55a..75c56b9 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -266,6 +266,10 @@ void cmLocalVisualStudio6Generator::AddDSPBuildRule(cmTarget& tgt) std::string makefileIn = this->Makefile->GetStartDirectory(); makefileIn += "/"; makefileIn += "CMakeLists.txt"; + if(!cmSystemTools::FileExists(makefileIn.c_str())) + { + return; + } std::string comment = "Building Custom Rule "; comment += makefileIn; std::string args; |