summaryrefslogtreecommitdiff
path: root/Modules/CMakePlatformId.h.in
diff options
context:
space:
mode:
authorOrgad Shaneh <orgads@gmail.com>2021-04-01 20:03:52 +0300
committerBrad King <brad.king@kitware.com>2021-04-26 14:27:34 -0400
commitddcd1469e8377fe258913a20aa47e65f71f8695b (patch)
treed18b6561383a8f4bc206dac848a15814b74ca642 /Modules/CMakePlatformId.h.in
parentb3ca4f9ad18220b2f56cd6af7df5cf1e671d39a8 (diff)
downloadcmake-ddcd1469e8377fe258913a20aa47e65f71f8695b.tar.gz
MSYS: Add support for running under MSYS runtime environment
Detect MSYS as CYGWIN, with the required adaptations.
Diffstat (limited to 'Modules/CMakePlatformId.h.in')
-rw-r--r--Modules/CMakePlatformId.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakePlatformId.h.in b/Modules/CMakePlatformId.h.in
index 2643874d19..59195f8e50 100644
--- a/Modules/CMakePlatformId.h.in
+++ b/Modules/CMakePlatformId.h.in
@@ -5,6 +5,9 @@
#if defined(__linux) || defined(__linux__) || defined(linux)
# define PLATFORM_ID "Linux"
+#elif defined(__MSYS__)
+# define PLATFORM_ID "MSYS"
+
#elif defined(__CYGWIN__)
# define PLATFORM_ID "Cygwin"