Navigation Menu

Skip to content

Commit

Permalink
CMake: use "site_name()" to find out hostname on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 18, 2021
1 parent 74af5e4 commit 5041b6e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Expand Up @@ -72,11 +72,7 @@ else()
endif()

if(NOT hostname)
if(${CMAKE_HOST_SOLARIS})
site_name(hostname)
else()
cmake_host_system_information(RESULT hostname QUERY HOSTNAME)
endif()
site_name(hostname)
endif()

if(BUILD_BAREOS_BINARIES)
Expand Down

0 comments on commit 5041b6e

Please sign in to comment.