Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Storz <philipp.storz@bareos.com>2021-01-18 17:06:46 +0300
committerPhilipp Storz <philipp.storz@bareos.com>2021-01-18 19:45:05 +0300
commit5041b6ebb0edc28156dab386d0abb82245964d47 (patch)
tree1387d52ede9a5b420a801d25b5b164e5a5a74104 /CMakeLists.txt
parent74af5e45603a77103daa50869e037b9863dd49bc (diff)
CMake: use "site_name()" to find out hostname on all platforms
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6be00f6d9..da5729a3c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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)