From 46419412c3911edfa1de3ad035be06694e861708 Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Mon, 7 Dec 2020 19:55:21 -0800 Subject: [PATCH] Use CONFIG QUIET when looking for packages (#1092) This change was extracted from #1013, in order to isolate some of the changes. --- sdk/core/azure-core/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/core/azure-core/CMakeLists.txt b/sdk/core/azure-core/CMakeLists.txt index 1a1ba046f..92737192b 100644 --- a/sdk/core/azure-core/CMakeLists.txt +++ b/sdk/core/azure-core/CMakeLists.txt @@ -15,7 +15,7 @@ find_package(Threads REQUIRED) # min version for `CURLSSLOPT_NO_REVOKE` # https://curl.haxx.se/libcurl/c/CURLOPT_SSL_OPTIONS.html set(CURL_MIN_REQUIRED_VERSION 7.44) -find_package(CURL ${CURL_MIN_REQUIRED_VERSION} CONFIG) +find_package(CURL ${CURL_MIN_REQUIRED_VERSION} CONFIG QUIET) if(NOT CURL_FOUND) find_package(CURL ${CURL_MIN_REQUIRED_VERSION} REQUIRED) endif() @@ -25,7 +25,7 @@ message("Libcurl version ${CURL_VERSION_STRING}") set(NLOHMANN_JSON_MIN_REQUIRED_VERSION 3.6.0) # Try to find the config cmake file. Tipically for when the integration is made at CMake level # (CMake project available with a configuration file to consume) -find_package(nlohmann_json ${NLOHMANN_JSON_MIN_REQUIRED_VERSION} CONFIG) +find_package(nlohmann_json ${NLOHMANN_JSON_MIN_REQUIRED_VERSION} CONFIG QUIET) if(NOT nlohmann_json_FOUND) # If CMake project/config is not found, last option is to find the library installed. The integration is done by the linker directly. find_package(nlohmann_json ${NLOHMANN_JSON_MIN_REQUIRED_VERSION} REQUIRED)