Skip to content

Commit

Permalink
Use Debian codename for ISSUE_RELEASE if no version number (cmake)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance authored and mahrud committed Nov 21, 2023
1 parent 03fafe0 commit 3606c14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions M2/cmake/flavor.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ if(NOT DEFINED ISSUE)
execute_process(COMMAND ${LSB_RELEASE} -s --release
OUTPUT_VARIABLE ISSUE_RELEASE
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
if(ISSUE_RELEASE STREQUAL "n/a")
execute_process(COMMAND ${LSB_RELEASE} -s --codename
OUTPUT_VARIABLE ISSUE_RELEASE
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
elseif(OS_RELEASE)
file(READ ${OS_RELEASE} _os_release)
string(REGEX MATCH "ID=([A-Za-z ]*)\n" _ "${_os_release}")
Expand Down

0 comments on commit 3606c14

Please sign in to comment.