mirror of
https://github.com/QtExcel/QXlsx.git
synced 2025-01-16 04:42:53 +08:00
Merge pull request #272 from MartinDelille/fix-qt-find
- Fix Qt find - using Qt 5.9 or higher version
This commit is contained in:
commit
b180b6d59e
@ -16,7 +16,7 @@ include(GNUInstallDirs)
|
||||
if(NOT DEFINED QT_VERSION_MAJOR)
|
||||
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Gui REQUIRED)
|
||||
endif()
|
||||
find_package(Qt${QT_VERSION_MAJOR} 5.9 COMPONENTS Core Gui REQUIRED)
|
||||
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui REQUIRED)
|
||||
set(EXPORT_NAME QXlsxQt${QT_VERSION_MAJOR})
|
||||
|
||||
if (QT_VERSION_MAJOR EQUAL 6)
|
||||
|
Loading…
x
Reference in New Issue
Block a user