diff options
author | Brad King <brad.king@kitware.com> | 2009-06-10 17:04:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-10 17:04:04 (GMT) |
commit | 41b0f92c6af01b10f3665902d169c858a8bf550c (patch) | |
tree | ab9b1b43ccc0b80772deb6c9dcd4e112d555a772 | |
parent | c8795101a47990842bd7e5c2163831d1fbe3c160 (diff) | |
download | CMake-41b0f92c6af01b10f3665902d169c858a8bf550c.zip CMake-41b0f92c6af01b10f3665902d169c858a8bf550c.tar.gz CMake-41b0f92c6af01b10f3665902d169c858a8bf550c.tar.bz2 |
ENH: Enable basic OpenVMS platform support
This adds the Modules/Platform/OpenVMS.cmake platform file for OpenVMS.
We just use Unix-like rules to work with the GNV compiler front-end.
A problem with process execution currently prevents CMake link scripts
from working, so we avoid using them.
-rw-r--r-- | Modules/Platform/OpenVMS.cmake | 7 | ||||
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Modules/Platform/OpenVMS.cmake b/Modules/Platform/OpenVMS.cmake new file mode 100644 index 0000000..3b7ba41 --- /dev/null +++ b/Modules/Platform/OpenVMS.cmake @@ -0,0 +1,7 @@ +INCLUDE(Platform/UnixPaths) + +SET(CMAKE_C_CREATE_STATIC_LIBRARY + "<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS>" + "<CMAKE_RANLIB> <TARGET>" + ) +SET(CMAKE_CXX_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY}) diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 2a97398..2b2f31a 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -31,7 +31,7 @@ cmGlobalUnixMakefileGenerator3::cmGlobalUnixMakefileGenerator3() this->ToolSupportsColor = true; this->ForceVerboseMakefiles = false; -#ifdef _WIN32 +#if defined(_WIN32) || defined(__VMS) this->UseLinkScript = false; #else this->UseLinkScript = true; |