MSYS: Add support for running under MSYS runtime environment

Detect MSYS as CYGWIN, with the required adaptations.
This commit is contained in:
Orgad Shaneh
2021-04-01 20:03:52 +03:00
committed by Brad King
parent b3ca4f9ad1
commit ddcd1469e8
60 changed files with 246 additions and 66 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
if("${CMAKE_MINIMUM_REQUIRED_VERSION}" VERSION_LESS "2.8.3.20101214")
if("${CMAKE_MINIMUM_REQUIRED_VERSION}" VERSION_LESS "2.8.3.20101214" AND NOT MSYS)
set(__USE_CMAKE_LEGACY_CYGWIN_WIN32 1)
endif()
if(NOT DEFINED WIN32)
if(NOT DEFINED WIN32 AND NOT MSYS)
set(WIN32 0)
if(DEFINED __USE_CMAKE_LEGACY_CYGWIN_WIN32)
if(NOT DEFINED CMAKE_LEGACY_CYGWIN_WIN32
+1
View File
@@ -0,0 +1 @@
include(Platform/CYGWIN-Clang-C)
+1
View File
@@ -0,0 +1 @@
include(Platform/CYGWIN-Clang-CXX)
@@ -0,0 +1 @@
include(Platform/CYGWIN-Determine-CXX)
+1
View File
@@ -0,0 +1 @@
include(Platform/CYGWIN-GNU-C)
+1
View File
@@ -0,0 +1 @@
include(Platform/CYGWIN-GNU-CXX)
+1
View File
@@ -0,0 +1 @@
include(Platform/CYGWIN-GNU-Fortran)
+1
View File
@@ -0,0 +1 @@
include(Platform/CYGWIN-GNU)
+1
View File
@@ -0,0 +1 @@
include(Platform/CYGWIN-windres)
+4
View File
@@ -0,0 +1,4 @@
set(MSYS 1)
include(Platform/CYGWIN)
set(CMAKE_SHARED_LIBRARY_PREFIX "msys-")
set(CMAKE_SHARED_MODULE_PREFIX "msys-")