Hello there,
I have browsed through similar requests / issues where the user wants to control the amount of output. This time it is about the generated CMake file. The "Library ... found:
Can we please suppress certain outputs like the above one?
ideally, conan install would look like:
conan install
there are also warnings that might be acceptable under certain circumstances. Eg. we deploy precompiled packages with compiler = gcc. If someone compiles the product with Clang, we will get a compiler mismatch warning (or the warning that we disabled the check). The product compiles and the linker can link everything fine. So in this case we don't need the warning.
So please consider allowing us to make the CMake script silent!
Thanks
HI @dzolee!
AFAIK it's not possible to configure cmake log level through the environment. So, in your case, we would need to provide a new generator suppressing all messages.
WDYT @danimtb ?
My friend, thanks for the response.
U got it wrong. I do not want to configure the CMake log level.
I want conanbuildinfo.cmake NOT print anything, NOT call message() if I do not want to.
I would like some IF's around message() calls in conanbuildinfo.cmake.
I would like that the Conan CMake generator(s) would produce such CMake code.
Clear now? :)
Hi @dzolee
Are you using the conan_basic_setup() macro in your CMakeLists.txt ?
If so, maybe we could add a new parameter to that macro to avoid the messages. I will take a look.
Thanks
Thanks guys
Yes I am using conan_basic_setup(TARGETS)
I think the following example illustrates my use case: I have 6 lines printed, per package that I include with Conan:

Hi @dzolee
Small question: are you seeing the above once, for each package you have in your dependencies? Because the compiler checks, for example, should be displayed just once. Including and running conan_basic_setup() once is enough, maybe you are calling it many times?
Hi there,
yes once per 3rd party library included with Conan.
So if I have 25 projects in the solution, and each of them includes 3 libraries with Conan, then 75 times.
I am trying to make the transition from another form of 3rd party package management to Conan, by migrating packages one after another.
Thanks in advance.
You dont need to call conan_basic_setup() for each library you included with Conan, just once. Then if you build all the porjects in your solution you will have the output once per project which is the common behavior.
Anyway, I have proposed a PR #4042 with a variable to make the output silent. Feedback will be appreciated. Thanks!
Thanks for the tip.
Lets leave this feature open, until #4042 is merged, it will automatically close this issue as solved when merged.
Thanks @dzolee