Make mmtelephony plugin optional
I see little purpose in pulling that stack in on a desktop computer, which doesn't even have a modem.
This commit is contained in:
parent
c486bb9d2c
commit
97e47efdf6
2 changed files with 4 additions and 2 deletions
|
@ -39,8 +39,11 @@ if(NOT SAILFISHOS)
|
|||
add_subdirectory(virtualmonitor)
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
find_package(KF5ModemManagerQt ${KF5_MIN_VERSION})
|
||||
if (TARGET KF5::ModemManagerQt)
|
||||
add_subdirectory(mmtelephony)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT WIN32)
|
||||
add_subdirectory(sendnotifications)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS ModemManagerQt)
|
||||
set(debug_file_SRCS)
|
||||
ecm_qt_declare_logging_category(
|
||||
debug_file_SRCS HEADER plugin_mmtelephony_debug.h
|
||||
|
|
Loading…
Reference in a new issue