diff options
author | Brad King <brad.king@kitware.com> | 2009-06-10 17:03:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-10 17:03:11 (GMT) |
commit | 516add4d58c50c34efb1db9931adcf362c5f7f10 (patch) | |
tree | 67c90df79d3976008ae4dc5b8647afb2080f6f68 /Source/cmGeneratedFileStream.cxx | |
parent | fc537f05ba1e5eb13adf27511cddfda216cf0b56 (diff) | |
download | CMake-516add4d58c50c34efb1db9931adcf362c5f7f10.zip CMake-516add4d58c50c34efb1db9931adcf362c5f7f10.tar.gz CMake-516add4d58c50c34efb1db9931adcf362c5f7f10.tar.bz2 |
ENH: On VMS use _dir and _tmp, not .dir and .tmp
The VMS posix path emulation does not handle multiple '.' characters in
file names in all cases. This avoids adding extra '.'s to file and
directory names for target directories and generated files.
Diffstat (limited to 'Source/cmGeneratedFileStream.cxx')
-rw-r--r-- | Source/cmGeneratedFileStream.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGeneratedFileStream.cxx b/Source/cmGeneratedFileStream.cxx index 0a7bab0..d6a157a 100644 --- a/Source/cmGeneratedFileStream.cxx +++ b/Source/cmGeneratedFileStream.cxx @@ -150,7 +150,11 @@ void cmGeneratedFileStreamBase::Open(const char* name) // Create the name of the temporary file. this->TempName = name; +#if defined(__VMS) + this->TempName += "_tmp"; +#else this->TempName += ".tmp"; +#endif // Make sure the temporary file that will be used is not present. cmSystemTools::RemoveFile(this->TempName.c_str()); |