File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ SET ( DEFAULT_PROTOBUF ON )
3434SET ( DEFAULT_WS281XPWM OFF )
3535SET ( DEFAULT_USE_SYSTEM_FLATBUFFERS_LIBS ON )
3636SET ( DEFAULT_USE_SYSTEM_MQTT_LIBS OFF )
37+ SET ( DEFAULT_USE_SYSTEM_SDBUS_CPP_LIBS ON )
3738SET ( DEFAULT_MF OFF )
3839SET ( DEFAULT_DX OFF )
3940SET ( DEFAULT_AVF OFF )
@@ -513,6 +514,9 @@ colorMe("USE_SYSTEM_MQTT_LIBS = " ${USE_SYSTEM_MQTT_LIBS})
513514option (USE_SYSTEM_FLATBUFFERS_LIBS "Use system flatbuffers libs" ${DEFAULT_USE_SYSTEM_FLATBUFFERS_LIBS} )
514515colorMe("USE_SYSTEM_FLATBUFFERS_LIBS = " ${USE_SYSTEM_FLATBUFFERS_LIBS} )
515516
517+ option (USE_SYSTEM_SDBUS_CPP_LIBS "Use system sdbus-c++ libs" ${DEFAULT_USE_SYSTEM_SDBUS_CPP_LIBS} )
518+ colorMe("USE_SYSTEM_SDBUS_CPP_LIBS = " ${USE_SYSTEM_SDBUS_CPP_LIBS} )
519+
516520option (USE_STATIC_QT_PLUGINS "Enable static QT plugins" ${DEFAULT_STATIC_QT_PLUGINS} )
517521colorMe("USE_STATIC_QT_PLUGINS = " ${USE_STATIC_QT_PLUGINS} )
518522
Original file line number Diff line number Diff line change @@ -262,9 +262,21 @@ ENDIF()
262262#=============================================================================
263263
264264if (UNIX AND NOT APPLE AND (ENABLE_POWER_MANAGEMENT OR ENABLE_PIPEWIRE))
265+ if (USE_SYSTEM_SDBUS_CPP_LIBS)
266+ pkg_check_modules (sdbus-c++ sdbus-c++>=2.0.0)
267+
268+ if (NOT sdbus-c++_FOUND)
269+ message ( WARNING "Could not find: sdbus-c++>=2.0.0. Fallback to sdbus-c++ submodule." )
270+ else ()
271+ #add_library(sdbus-cpp ALIAS libzstd)
272+ endif ()
273+ endif ()
274+
275+ if (NOT sdbus-c++_FOUND)
265276 set (SDBUSCPP_BUILD_DOCS OFF CACHE BOOL "No doc" )
266277 add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /sdbus-cpp)
267278 set_target_properties (sdbus-c++-objlib PROPERTIES POSITION_INDEPENDENT_CODE ON )
279+ endif ()
268280endif ()
269281
270282#=============================================================================
You can’t perform that action at this time.
0 commit comments