Skip to content

Commit

Permalink
Set system name from uname.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlab-runner committed Feb 26, 2020
1 parent 1a34766 commit 4653d4a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Expand Up @@ -102,6 +102,15 @@ if(UNIX)
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set(CPACK_SYSTEM_NAME ${LSB_RELEASE_ID}${LSB_RELEASE_RELEASE})
else()
find_program(UNAME uname)
if(EXISTS ${UNAME})
execute_process(COMMAND ${UNAME} -s
OUTPUT_VARIABLE UNAME_SYSTEM_NAME
OUTPUT_STRIP_TRAILING_WHITESPACE
)
set(CPACK_SYSTEM_NAME ${UNAME_SYSTEM_NAME})
endif()
endif()
find_program(UNAME uname)
if(EXISTS ${UNAME})
Expand Down

0 comments on commit 4653d4a

Please sign in to comment.