Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Is there a way to hide some installs output from CMAKE?

I’m installing huge directories with CMAKE using

install(FILES ....) 

I’m wondering if there was any way to hide/skip specific lines, because they’re usually Up-to-date and i’m having large outputs of this hiding relevant informations.

Up-to-date: ....

If not, i’ll find some workarounds with Batch scripts but i’d really like it to be in the CMakeLists.txt

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Thank you.

>Solution :

There is CMAKE_INSTALL_MESSAGE variable for that.

Adding set(CMAKE_INSTALL_MESSAGE LAZY) to your CMakeLists.txt would skip the "Up-to-date" messages.

See docs for further information.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading