1 # DetectDistro.cmake -- Detect Linux distribution
3 message(STATUS "System is: ${CMAKE_SYSTEM_NAME}")
5 if(CMAKE_SYSTEM_NAME MATCHES "Linux")
6 # Detect Linux distribution (if possible)
7 execute_process(COMMAND "/usr/bin/lsb_release" "-is"
9 OUTPUT_VARIABLE LINUX_DISTRO
11 OUTPUT_STRIP_TRAILING_WHITESPACE)
12 message(STATUS "Linux distro is: ${LINUX_DISTRO}")