Skip to content

Commit 55f2379

Browse files
Fixed CMake Windows build
1 parent 831d90e commit 55f2379

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
cmake_minimum_required(VERSION 3.5)
22
project(QtAdvancedDockingSystem LANGUAGES CXX VERSION ${VERSION_SHORT})
3-
find_package(Qt5 5.5 COMPONENTS Core Gui Widgets X11Extras REQUIRED)
3+
find_package(Qt5 5.5 COMPONENTS Core Gui Widgets REQUIRED)
4+
if (UNIX)
5+
find_package(Qt5 5.5 COMPONENTS X11Extras REQUIRED)
6+
endif()
47
set(CMAKE_INCLUDE_CURRENT_DIR ON)
58
if(BUILD_STATIC)
69
set(CMAKE_STATIC_LIBRARY_SUFFIX "_static${CMAKE_STATIC_LIBRARY_SUFFIX}")

0 commit comments

Comments
 (0)