tdlight/CMake/illumos.cmake

11 lines
284 B
CMake
Raw Normal View History

2021-04-29 15:40:08 +02:00
if (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
2021-04-30 00:48:01 +02:00
#
# Determine if the host is running an illumos distribution:
#
execute_process(COMMAND /usr/bin/uname -o OUTPUT_VARIABLE UNAME_O OUTPUT_STRIP_TRAILING_WHITESPACE)
2021-04-29 15:40:08 +02:00
2021-04-30 00:48:01 +02:00
if (UNAME_O STREQUAL "illumos")
set(ILLUMOS 1)
endif()
2021-04-29 15:40:08 +02:00
endif()