diff --git a/app/external/qcustomplot/CMakeLists.txt b/app/external/qcustomplot/CMakeLists.txt index 64c27f3..f8226c0 100644 --- a/app/external/qcustomplot/CMakeLists.txt +++ b/app/external/qcustomplot/CMakeLists.txt @@ -2,15 +2,16 @@ # CMakeLists for qcustomplot # -if(${USE_QT6}) -FIND_PACKAGE(Qt6 REQUIRED COMPONENTS Core Gui Widgets PrintSupport) -IF (NOT Qt6_FOUND) -FIND_PACKAGE(Qt5 REQUIRED COMPONENTS Core Gui Widgets PrintSupport) -ENDIF() +IF(${USE_QT6}) + FIND_PACKAGE(Qt6 QUIET COMPONENTS Core Gui Widgets PrintSupport) + IF (NOT Qt6_FOUND) + FIND_PACKAGE(Qt5 REQUIRED COMPONENTS Core Gui Widgets PrintSupport) + ENDIF() ELSE() -FIND_PACKAGE(Qt5 REQUIRED COMPONENTS Core Gui Widgets PrintSupport) + FIND_PACKAGE(Qt5 REQUIRED COMPONENTS Core Gui Widgets PrintSupport) ENDIF() + SET(qcustomplot_SRCS qcustomplot.cpp qcustomplot.h) SET(CMAKE_AUTOMOC ON)