diff options
author | Brad King <brad.king@kitware.com> | 2013-02-03 17:04:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-02-04 20:20:18 (GMT) |
commit | 5484c6069409331a8054190d9bae874d5b3c3bff (patch) | |
tree | bab1d592b85f2de45be7d5990ee697caa443e030 | |
parent | 1fd8d017e6b548520b7f2aa8dcc6ce39a2ec3137 (diff) | |
parent | 0f24a667152c86982f7296b7df19f058c660d981 (diff) | |
download | CMake-5484c6069409331a8054190d9bae874d5b3c3bff.zip CMake-5484c6069409331a8054190d9bae874d5b3c3bff.tar.gz CMake-5484c6069409331a8054190d9bae874d5b3c3bff.tar.bz2 |
Merge branch 'vs6-rule-files' into add-ExternalData-module
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 6c78ac4..418eaa4 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -325,6 +325,9 @@ void cmLocalVisualStudio6Generator::WriteDSPFile(std::ostream& fout, if(!cmSystemTools::FileExists(source.c_str())) { cmSystemTools::ReplaceString(source, "$(IntDir)/", ""); + // Make sure the path exists for the file + std::string path = cmSystemTools::GetFilenamePath(source); + cmSystemTools::MakeDirectory(path.c_str()); #if defined(_WIN32) || defined(__CYGWIN__) std::ofstream sourceFout(source.c_str(), std::ios::binary | std::ios::out |