Skip to content

Commit 77861cd

Browse files
committed
feat: make Conan quiet if cmake is not verbose
1 parent e73bfd0 commit 77861cd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/Conan.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ macro(run_conan)
3232
set(LIST_OF_BUILD_TYPES ${CMAKE_CONFIGURATION_TYPES})
3333
endif()
3434

35+
is_verbose(_is_verbose)
36+
if(NOT ${_is_verbose})
37+
set(CONAN_QUIET YES)
38+
endif()
39+
3540
foreach(TYPE ${LIST_OF_BUILD_TYPES})
3641
message(STATUS "Running Conan for build type '${TYPE}'")
3742

@@ -48,7 +53,7 @@ macro(run_conan)
4853
OPTIONS ${ProjectOptions_CONAN_OPTIONS}
4954
# Pass CMake compilers to Conan
5055
ENV "CC=${CMAKE_C_COMPILER}" "CXX=${CMAKE_CXX_COMPILER}"
51-
SETTINGS ${settings})
56+
SETTINGS ${settings} OUTPUT_QUIET ${CONAN_QUIET})
5257
endforeach()
5358

5459
endmacro()

0 commit comments

Comments
 (0)