From 41b0f92c6af01b10f3665902d169c858a8bf550c Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 10 Jun 2009 13:04:04 -0400 Subject: 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. --- Modules/Platform/OpenVMS.cmake | 7 +++++++ Source/cmGlobalUnixMakefileGenerator3.cxx | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Modules/Platform/OpenVMS.cmake 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 + " cr " + " " + ) +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; -- cgit v0.12