]> git.mxchange.org Git - flightgear.git/blob - CMakeModules/DetectDistro.cmake
Nasal: expose missing Canvas::setLayout
[flightgear.git] / CMakeModules / DetectDistro.cmake
1 # DetectDistro.cmake -- Detect Linux distribution
2
3 message(STATUS "System is: ${CMAKE_SYSTEM_NAME}")
4
5 if(CMAKE_SYSTEM_NAME MATCHES "Linux")
6     # Detect Linux distribution (if possible)
7     execute_process(COMMAND "/usr/bin/lsb_release" "-is"
8                     TIMEOUT 4
9                     OUTPUT_VARIABLE LINUX_DISTRO
10                     ERROR_QUIET
11                     OUTPUT_STRIP_TRAILING_WHITESPACE)
12     message(STATUS "Linux distro is: ${LINUX_DISTRO}")
13 endif()