From 5b90e222a80849f346d0b12752aa1f7a9fb839fc Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 3 Sep 2023 08:43:16 -0700 Subject: [PATCH] Enable DBUS cmake option on FreeBSD --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8cba69ab37..176644898d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,16 +27,21 @@ feature_option(STACKTRACE "Enable stacktrace support" ON) feature_option(TESTING "Build internal testing suite" OFF) feature_option(VERBOSE_CONFIGURE "Show information about PACKAGES_FOUND and PACKAGES_NOT_FOUND in the configure output (only useful for debugging the CMake build scripts)" OFF) -if (CMAKE_SYSTEM_NAME STREQUAL "Linux") +if (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") feature_option_dependent(DBUS "Enable support for notifications and power-management features via D-Bus on Linux" ON "GUI" OFF ) +endif() + +if (CMAKE_SYSTEM_NAME STREQUAL "Linux") feature_option_dependent(SYSTEMD "Install systemd service file. Target directory is overridable with `SYSTEMD_SERVICES_INSTALL_DIR` variable" OFF "NOT GUI" OFF ) -elseif (MSVC) +endif() + +if (MSVC) feature_option(MSVC_RUNTIME_DYNAMIC "Use MSVC dynamic runtime library (-MD) instead of static (-MT)" ON) endif()