File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,16 @@ if (${QT_VERSION_MAJOR})
7
7
else ()
8
8
find_package (QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED )
9
9
endif ()
10
- find_package (Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui Widgets REQUIRED )
11
- if (UNIX AND NOT APPLE )
10
+
11
+ set (ads_DEP_LIBS Core Gui Widgets )
12
+ if (UNIX AND NOT APPLE AND QT_VERSION_MAJOR STREQUAL "6" AND QT_VERSION_MINOR GREATER 8 )
13
+ set (ads_DEP_LIBS Core Gui GuiPrivate Widgets )
14
+ endif ()
15
+ find_package (Qt${QT_VERSION_MAJOR} COMPONENTS ${ads_DEP_LIBS} REQUIRED )
16
+ if (UNIX AND NOT APPLE AND QT_VERSION_MAJOR STREQUAL "6" AND QT_VERSION_MINOR GREATER 8 )
12
17
include_directories (${Qt${QT_VERSION_MAJOR}Gui_PRIVATE_INCLUDE_DIRS} )
13
18
endif ()
19
+
14
20
set (CMAKE_INCLUDE_CURRENT_DIR ON )
15
21
if (BUILD_STATIC )
16
22
set (CMAKE_STATIC_LIBRARY_SUFFIX "_static${CMAKE_STATIC_LIBRARY_SUFFIX} " )
You can’t perform that action at this time.
0 commit comments