mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Use guard for QT5/XCB also for cmake build.
See commit d4428ceb81
from Enrico Forestieri
This commit is contained in:
parent
38bfc6a542
commit
4aa88e982a
@ -588,7 +588,9 @@ if(LYX_XMINGW)
|
||||
list(APPEND CMAKE_FIND_ROOT_PATH ${GNUWIN32_DIR})
|
||||
endif()
|
||||
|
||||
set(QPA_XCB)
|
||||
if(LYX_USE_QT MATCHES "QT5")
|
||||
# set QPA_XCB if QT uses X11
|
||||
find_package(Qt5Core REQUIRED)
|
||||
if (Qt5Core_FOUND)
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
@ -596,6 +598,9 @@ if(LYX_USE_QT MATCHES "QT5")
|
||||
find_package(Qt5MacExtras REQUIRED)
|
||||
endif()
|
||||
find_package(Qt5X11Extras QUIET)
|
||||
if(Qt5X11Extras_FOUND)
|
||||
set(QPA_XCB 1)
|
||||
endif()
|
||||
find_package(Qt5WinExtras QUIET)
|
||||
set(QTVERSION ${Qt5Core_VERSION})
|
||||
macro (qt_use_modules)
|
||||
|
Loading…
Reference in New Issue
Block a user