summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-06-11 19:25:48 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-06-11 19:25:48 (GMT)
commit8446a480548493281cda29e519189f479c0ea95c (patch)
tree03a00d452a571b1cea237ecb885d443f160da618
parentb8b749aced36d948665d70f2004b2bf7e96e5d50 (diff)
downloadCMake-8446a480548493281cda29e519189f479c0ea95c.zip
CMake-8446a480548493281cda29e519189f479c0ea95c.tar.gz
CMake-8446a480548493281cda29e519189f479c0ea95c.tar.bz2
ENH: use .exe on vms
-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 "";