mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 08:08:59 +08:00
f9bcf2e650
* add kddockwidgets * format manifest * version stuff * switch to vcpkg_cmake_* and add patch * version stuff * add crosscompiliation code for arm windows * version stuff * remove prefer ninja * version stuff
16 lines
549 B
Diff
16 lines
549 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 6c174b89a..b83bace53 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -127,8 +127,8 @@ endif()
|
|
if(${PROJECT_NAME}_QT6)
|
|
set(Qt_VERSION_MAJOR 6)
|
|
set(QT_MIN_VERSION "6.0.0")
|
|
- find_package(Qt6Widgets ${QT_MIN_VERSION} REQUIRED)
|
|
- find_package(Qt6Test ${QT_MIN_VERSION} REQUIRED)
|
|
+ find_package(Qt6 ${QT_MIN_VERSION} COMPONENTS Widgets REQUIRED)
|
|
+ find_package(Qt6 ${QT_MIN_VERSION} OPTIONAL_COMPONENTS Test)
|
|
set(${PROJECT_NAME}_LIBRARY_QTID "-qt6")
|
|
else()
|
|
set(Qt_VERSION_MAJOR 5)
|