- workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/25691 - also see https://github.com/ra3xdh/qucs_s/issues/592#issuecomment-1952967356 --- CMakeLists.txt.orig 2024-02-18 17:40:43 UTC +++ CMakeLists.txt @@ -35,7 +35,7 @@ set(QT_DEFAULT_MAJOR_VERSION 6) message(STATUS "${PROJECT_NAME} ${CMAKE_INSTALL_PREFIX} ${qucs-suite_BINARY_DIR}" ) set(QT_DEFAULT_MAJOR_VERSION 6) -find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Gui Widgets LinguistTools) +find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core Gui Widgets LinguistTools) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Gui Widgets LinguistTools) message(STATUS "QT Major Version: " ${QT_VERSION_MAJOR})