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 | |
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.
-rw-r--r-- | Source/cmGeneratedFileStream.cxx | 4 | ||||
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 4 | ||||
-rw-r--r-- | Source/cmTarget.cxx | 4 |
3 files changed, 12 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()); diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index f92ff86..df8a80f 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -2158,7 +2158,11 @@ cmLocalUnixMakefileGenerator3 { std::string dir = cmake::GetCMakeFilesDirectoryPostSlash(); dir += target.GetName(); +#if defined(__VMS) + dir += "_dir"; +#else dir += ".dir"; +#endif return dir; } diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 851dfe8..cea61f6 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -930,7 +930,11 @@ std::string cmTarget::GetSupportDirectory() const dir += cmake::GetCMakeFilesDirectory(); dir += "/"; dir += this->Name; +#if defined(__VMS) + dir += "_dir"; +#else dir += ".dir"; +#endif return dir; } |