Browse Source

ENH: use .exe on vms

Bill Hoffman 16 years ago
parent
commit
8446a48054
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Modules/Platform/OpenVMS.cmake
  2. 1 1
      Source/kwsys/SystemTools.cxx

+ 1 - 0
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

+ 1 - 1
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 "";