1
0
mirror of https://github.com/JvanKatwijk/qt-dab.git synced 2025-10-06 00:02:40 +02:00
Files
SDR-DAB_Qt-DAB/cmake/Modules/FindLSBId.cmake
2025-07-16 20:32:47 +02:00

17 lines
459 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Set a variable to determine which Linux distribution is being used.
# Debian packages things differently to Fedora (which is standard).
#
# This module sets the variable:
#
# LSB_ID_SHORT the short name of the Linux distribution or unknown.
set(LSB_ID_SHORT "unknown")
find_program(LSB_RELEASE lsb_release)
if(LSB_RELEASE)
execute_process(COMMAND ${LSB_RELEASE} -is
OUTPUT_VARIABLE LSB_ID_SHORT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif()