Use HOST_NAME_MAX instead of hardcoding the maximum hostname length
This commit is contained in:
+5
-1
@@ -16,6 +16,7 @@ include(FetchContent)
|
||||
include(ExternalProject)
|
||||
|
||||
option(WIVRN_USE_SYSTEM_FREETYPE "Use system FreeType" ON)
|
||||
option(WIVRN_USE_SYSTEMD "Use systemd" ON)
|
||||
option(WIVRN_USE_ANDROID_VALIDATION_LAYER "Download the android version of the Vulkan validation layer" OFF)
|
||||
option(WIVRN_BUILD_CLIENT "Build WiVRn client" ON)
|
||||
option(WIVRN_BUILD_SERVER "Build WiVRn server" ON)
|
||||
@@ -54,7 +55,10 @@ if (WIVRN_BUILD_SERVER)
|
||||
message(FATAL_ERROR "No encoder found")
|
||||
endif()
|
||||
|
||||
pkg_check_modules(SYSTEMD IMPORTED_TARGET systemd)
|
||||
if (WIVRN_USE_SYSTEMD)
|
||||
pkg_check_modules(SYSTEMD REQUIRED IMPORTED_TARGET systemd)
|
||||
endif()
|
||||
|
||||
pkg_check_modules(AVAHI IMPORTED_TARGET avahi-client)
|
||||
pkg_check_modules(libpulse IMPORTED_TARGET libpulse)
|
||||
find_package(Eigen3 REQUIRED)
|
||||
|
||||
Reference in New Issue
Block a user