Commit 670ccbad authored by Volker Krause's avatar Volker Krause
Browse files

Fix handling of optional KF5 dependencies

parent da52990c
...@@ -89,7 +89,7 @@ if (ANDROID) ...@@ -89,7 +89,7 @@ if (ANDROID)
else() else()
find_package(Qt5 REQUIRED COMPONENTS Widgets DBus) find_package(Qt5 REQUIRED COMPONENTS Widgets DBus)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS DBusAddons) find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS DBusAddons)
find_package(KF5 ${KF5_MIN_VERSION} COMPONENTS Solid Crash) find_package(KF5 ${KF5_MIN_VERSION} OPTIONAL_COMPONENTS Solid Crash)
endif() endif()
add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_URL_CAST_FROM_STRING) add_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_URL_CAST_FROM_STRING)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment