Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cmake/Platform/System/LinuxDistDetector.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ function(detect_host_linux_distribution)
message(AUTHOR_WARNING "Linux distribution detection called on Apple platform")
else () # Linux host
find_program(lsb_release_exec lsb_release)

if ("lsb_release_exec-NOTFOUND" STREQUAL "${lsb_release_exec}")
message(WARNING "Linux distribution couldn't be detected - Please install 'lsb_release'.")
endif()

execute_process(COMMAND ${lsb_release_exec} -is
OUTPUT_VARIABLE lsb_release_id_short
OUTPUT_STRIP_TRAILING_WHITESPACE)
Expand Down