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.
This commit is contained in:
Brad King 2009-06-10 13:04:04 -04:00
parent c8795101a4
commit 41b0f92c6a
2 changed files with 8 additions and 1 deletions

View File

@ -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})

View File

@ -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;