summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/Platform/OpenVMS.cmake1
-rw-r--r--Source/kwsys/SystemTools.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Platform/OpenVMS.cmake b/Modules/Platform/OpenVMS.cmake
index 3b7ba41..c52effa 100644
--- a/Modules/Platform/OpenVMS.cmake
+++ b/Modules/Platform/OpenVMS.cmake
@@ -5,3 +5,4 @@ SET(CMAKE_C_CREATE_STATIC_LIBRARY
"<CMAKE_RANLIB> <TARGET>"
)
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 13a2dc2..553b70e 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 "";