diff options
author | Brad King <brad.king@kitware.com> | 2013-02-05 19:46:32 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-02-05 19:46:32 (GMT) |
commit | e6b72e8b8719f5cd8b7bd8b296c05123c0fb1395 (patch) | |
tree | 7c9ef370a9f9b2ccb88b9438573cf37ce579227c /Source/cmLocalVisualStudio6Generator.cxx | |
parent | 9ff34ff2fddc4c60737c16b9ace7fd567047da9c (diff) | |
parent | 0f24a667152c86982f7296b7df19f058c660d981 (diff) | |
download | CMake-e6b72e8b8719f5cd8b7bd8b296c05123c0fb1395.zip CMake-e6b72e8b8719f5cd8b7bd8b296c05123c0fb1395.tar.gz CMake-e6b72e8b8719f5cd8b7bd8b296c05123c0fb1395.tar.bz2 |
Merge topic 'vs6-rule-files'
0f24a66 VS 6: Create .rule file directory before file
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-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 617eb4e..c35288c 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 |