diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-07-10 15:41:26 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2020-07-10 15:41:26 +0200 |
| commit | 469a3a913d99d7c190cf99ca8e3d2d72f6c8f8c2 (patch) | |
| tree | 0de5c947983389b5ee1de9bfee032f3c666473e3 | |
| parent | 8d6f865a9e312d3b4f686ff99af6e7fe9e8c5b13 (diff) | |
| download | qxmpp-469a3a913d99d7c190cf99ca8e3d2d72f6c8f8c2.tar.gz | |
CMake: Hide Qt6 find errors
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | examples/example_9_vCard/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | tests/CMakeLists.txt | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2880f32f..6cc94db1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/modules") # prefer Qt6 -find_package(Qt6 COMPONENTS Core Network Xml) +find_package(Qt6 QUIET COMPONENTS Core Network Xml) if(NOT Qt6_FOUND) find_package(Qt5 5.7.0 REQUIRED COMPONENTS Core Network Xml) endif() diff --git a/examples/example_9_vCard/CMakeLists.txt b/examples/example_9_vCard/CMakeLists.txt index f21139b9..f548fbbd 100644 --- a/examples/example_9_vCard/CMakeLists.txt +++ b/examples/example_9_vCard/CMakeLists.txt @@ -1,4 +1,4 @@ -find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 QUIET COMPONENTS Gui) if(NOT Qt6_FOUND) find_package(Qt5 REQUIRED Gui) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 95134421..faa70200 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,6 @@ include_directories(.) -find_package(Qt6 COMPONENTS Test) +find_package(Qt6 QUIET COMPONENTS Test) if(NOT Qt6_FOUND) find_package(Qt5 REQUIRED COMPONENTS Test) endif() |
