From 8446a480548493281cda29e519189f479c0ea95c Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 11 Jun 2009 15:25:48 -0400 Subject: [PATCH] ENH: use .exe on vms --- Modules/Platform/OpenVMS.cmake | 1 + Source/kwsys/SystemTools.cxx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Platform/OpenVMS.cmake b/Modules/Platform/OpenVMS.cmake index 3b7ba41d4..c52effab6 100644 --- a/Modules/Platform/OpenVMS.cmake +++ b/Modules/Platform/OpenVMS.cmake @@ -5,3 +5,4 @@ SET(CMAKE_C_CREATE_STATIC_LIBRARY " " ) SET(CMAKE_CXX_CREATE_STATIC_LIBRARY ${CMAKE_C_CREATE_STATIC_LIBRARY}) +SET(CMAKE_EXECUTABLE_SUFFIX ".exe") # .exe diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 13a2dc28b..553b70ed3 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -431,7 +431,7 @@ bool SystemTools::PutEnv(const char* value) const char* SystemTools::GetExecutableExtension() { -#if defined(_WIN32) || defined(__CYGWIN__) +#if defined(_WIN32) || defined(__CYGWIN__) || defined(__VMS) return ".exe"; #else return "";