Commit c5047038 authored by Kevin Funk's avatar Kevin Funk

Make Qt5::X11Extras really optional

Otherwise may fail with:
CMake Warning at CMakeLists.txt:32 (find_package):
  Found package configuration file:


  but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT
  FOUND.  Reason given by package:


  Failed to find Qt5 component "X11Extras" config file at
  "/Users/kfunk/Qt5.6.2/5.6/clang_64/lib/cmake/Qt5X11Extras/Qt5X11ExtrasConfig.cmake" CMake Error at /usr/local/Cellar/cmake/3.6.2/share/cmake/Modules/FeatureSummary.cmake:556 (message):
  feature_summary() Error: REQUIRED package(s) are missing, aborting CMake

Reviewers: rjvbb, sitter, davidedmundson

Reviewed By: sitter, davidedmundson

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision:
parent c8dbb830
......@@ -30,7 +30,7 @@ find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Widgets Test
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n CoreAddons Service ConfigWidgets JobWidgets KIO Crash Completion XmlRpcClient WidgetsAddons Wallet Notifications IdleTime)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG COMPONENTS X11Extras)
find_package(Qt5X11Extras ${QT_MIN_VERSION} CONFIG)
configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h)
#cmakedefine Qt5X11Extras_FOUND 1
#cmakedefine01 Qt5X11Extras_FOUND
#define HAVE_X11 Qt5X11Extras_FOUND
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