summaryrefslogtreecommitdiff
path: root/protocols/Telegram/tdlib/td/CMake/illumos.cmake
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-11-30 17:48:47 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-11-30 17:48:47 +0300
commit0ece30dc7c0e34b4c5911969b8fa99c33c6d023c (patch)
tree671325d3fec09b999411e4e3ab84ef8259261818 /protocols/Telegram/tdlib/td/CMake/illumos.cmake
parent46c53ffc6809c67e4607e99951a2846c382b63b2 (diff)
Telegram: update for TDLIB
Diffstat (limited to 'protocols/Telegram/tdlib/td/CMake/illumos.cmake')
-rw-r--r--protocols/Telegram/tdlib/td/CMake/illumos.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/Telegram/tdlib/td/CMake/illumos.cmake b/protocols/Telegram/tdlib/td/CMake/illumos.cmake
new file mode 100644
index 0000000000..70583d1a82
--- /dev/null
+++ b/protocols/Telegram/tdlib/td/CMake/illumos.cmake
@@ -0,0 +1,10 @@
+if (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
+ #
+ # Determine if the host is running an illumos distribution:
+ #
+ execute_process(COMMAND /usr/bin/uname -o OUTPUT_VARIABLE UNAME_O OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+ if (UNAME_O STREQUAL "illumos")
+ set(ILLUMOS 1)
+ endif()
+endif()