diff --git a/src/tools/sdktool/CMakeLists.txt b/src/tools/sdktool/CMakeLists.txt index 3bf84b5886f..4adf618b845 100644 --- a/src/tools/sdktool/CMakeLists.txt +++ b/src/tools/sdktool/CMakeLists.txt @@ -16,15 +16,19 @@ if (NOT QT_CREATOR_API_DEFINED) set(DESTINATION DESTINATION .) include(QtCreatorIDEBranding) include(QtCreatorAPI) + + find_package(QT NAMES Qt6 Qt5 + COMPONENTS Core + REQUIRED + ) + find_package(Qt${QT_VERSION_MAJOR} + COMPONENTS Core + REQUIRED + ) endif() configure_file(../../app/app_version.h.cmakein app/app_version.h ESCAPE_QUOTES) -find_package(Qt5 - COMPONENTS Core - REQUIRED -) - if (APPLE) find_library(FWFoundation Foundation) endif()