Skip to content

Commit 2fb47e4

Browse files
authored
Merge pull request #79 from cpp-best-practices/conan-quiet
2 parents b773128 + e97a7e1 commit 2fb47e4

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/Conan.cmake

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ macro(run_conan)
4040
set(LIST_OF_BUILD_TYPES ${CMAKE_CONFIGURATION_TYPES})
4141
endif()
4242

43+
is_verbose(_is_verbose)
44+
if(NOT ${_is_verbose})
45+
set(OUTPUT_QUIET "OUTPUT_QUIET")
46+
else()
47+
set(OUTPUT_QUIET OFF)
48+
endif()
49+
4350
foreach(TYPE ${LIST_OF_BUILD_TYPES})
4451
message(STATUS "Running Conan for build type '${TYPE}'")
4552

@@ -62,7 +69,8 @@ macro(run_conan)
6269
"CC=${CMAKE_C_COMPILER}"
6370
"CXX=${CMAKE_CXX_COMPILER}"
6471
SETTINGS
65-
${settings})
72+
${settings}
73+
${OUTPUT_QUIET})
6674
endforeach()
6775

6876
endmacro()

0 commit comments

Comments
 (0)