Browse Source

ENH: add exe stuff for cygwin

Bill Hoffman 20 years ago
parent
commit
b08a151722
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Modules/Platform/CYGWIN-g77.cmake
  2. 1 0
      Modules/Platform/CYGWIN.cmake

+ 1 - 0
Modules/Platform/CYGWIN-g77.cmake

@@ -2,4 +2,5 @@ SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
 SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll")
 SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "") 
 SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "")
+SET(CMAKE_EXECUTABLE_SUFFIX ".exe")          # .exe
 INCLUDE(Platform/g77)

+ 1 - 0
Modules/Platform/CYGWIN.cmake

@@ -5,3 +5,4 @@ SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll")
 # no pic for gcc on cygwin
 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
 SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
+SET(CMAKE_EXECUTABLE_SUFFIX ".exe")          # .exe