From 55f23799bcf3d848558584a1a091f1cd375292a6 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Mon, 31 Aug 2020 23:29:33 +0200 Subject: [PATCH] Fixed CMake Windows build --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6e31d27..625f4fc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 3.5) project(QtAdvancedDockingSystem LANGUAGES CXX VERSION ${VERSION_SHORT}) -find_package(Qt5 5.5 COMPONENTS Core Gui Widgets X11Extras REQUIRED) +find_package(Qt5 5.5 COMPONENTS Core Gui Widgets REQUIRED) +if (UNIX) + find_package(Qt5 5.5 COMPONENTS X11Extras REQUIRED) +endif() set(CMAKE_INCLUDE_CURRENT_DIR ON) if(BUILD_STATIC) set(CMAKE_STATIC_LIBRARY_SUFFIX "_static${CMAKE_STATIC_LIBRARY_SUFFIX}")