mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
MSYS: Add support for running under MSYS runtime environment
Detect MSYS as CYGWIN, with the required adaptations.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
include(Platform/CYGWIN-Clang-C)
|
||||
@@ -0,0 +1 @@
|
||||
include(Platform/CYGWIN-Clang-CXX)
|
||||
@@ -0,0 +1 @@
|
||||
include(Platform/CYGWIN-Determine-CXX)
|
||||
@@ -0,0 +1 @@
|
||||
include(Platform/CYGWIN-GNU-C)
|
||||
@@ -0,0 +1 @@
|
||||
include(Platform/CYGWIN-GNU-CXX)
|
||||
@@ -0,0 +1 @@
|
||||
include(Platform/CYGWIN-GNU-Fortran)
|
||||
@@ -0,0 +1 @@
|
||||
include(Platform/CYGWIN-GNU)
|
||||
@@ -0,0 +1 @@
|
||||
include(Platform/CYGWIN-windres)
|
||||
@@ -0,0 +1,4 @@
|
||||
set(MSYS 1)
|
||||
include(Platform/CYGWIN)
|
||||
set(CMAKE_SHARED_LIBRARY_PREFIX "msys-")
|
||||
set(CMAKE_SHARED_MODULE_PREFIX "msys-")
|
||||
Reference in New Issue
Block a user