diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c66d85..f2d89cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,8 +17,9 @@ include(KDEInstallDirs) include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE) include(KDECMakeSettings) -if (NOT APPLE) +if (UNIX AND NOT APPLE) find_package(X11) + find_package(Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED COMPONENTS X11Extras) endif() set(HAVE_X11 ${X11_FOUND})