From 246f9ebbec3bb2c0402f529667ea2415553d60a1 Mon Sep 17 00:00:00 2001 From: wuhai Date: Fri, 29 Mar 2024 08:57:45 +0800 Subject: [PATCH] chore: update the file --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cb4d3429..5db9c33d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,7 +147,7 @@ endif() # ------------------------------------------------------------------------------------------------- # The private modules is not open-source. -if(NOT Qt{QT_VERSION_MAJOR}_VERSION VERSION_LESS "6.5.0") +if((QT_VERSION_MAJOR GREATER 5) AND (NOT Qt6_VERSION VERSION_LESS "6.5.0")) if(EXISTS ${CMAKE_SOURCE_DIR}/Private) add_subdirectory(${CMAKE_SOURCE_DIR}/Private) endif()