aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/os.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-29 20:34:08 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-29 20:34:08 +0300
commit1106f51640ee3cec107a8ac904a818767c21a9aa (patch)
tree477c6c94b3c5cf2d3cf700eee686377ad2f8ad7c /project/os.py
parentproject: add os.py (diff)
downloadcmake-common-1106f51640ee3cec107a8ac904a818767c21a9aa.tar.gz
cmake-common-1106f51640ee3cec107a8ac904a818767c21a9aa.zip
project.boost: first-class MinGW-w64 support
Diffstat (limited to 'project/os.py')
-rw-r--r--project/os.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/project/os.py b/project/os.py
index 86ccaad..2f5f088 100644
--- a/project/os.py
+++ b/project/os.py
@@ -31,6 +31,11 @@ def on_windows():
return OS.current() is OS.WINDOWS
+def on_windows_like():
+ os = OS.current()
+ return os is OS.WINDOWS or os is OS.CYGWIN
+
+
def on_linux_like():
os = OS.current()
return os is OS.LINUX or os is OS.CYGWIN