diff --git a/tests/manual/consolepubsub/CMakeLists.txt b/tests/manual/consolepubsub/CMakeLists.txt index 761aa15..cdf0d07 100644 --- a/tests/manual/consolepubsub/CMakeLists.txt +++ b/tests/manual/consolepubsub/CMakeLists.txt @@ -16,7 +16,9 @@ endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/mqtt/consolepubsub") -find_package(Qt6 REQUIRED COMPONENTS Mqtt) +if(NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT) + find_package(Qt6 REQUIRED COMPONENTS Mqtt) +end() # # Pub