title: Silence custom command depending on CMAKE_VERBOSE_MAKEFILE
body: <p>I've a custom command in my CMake script which generates a lot of output. I'd like to take advantage of CMAKE_VERBOSE_MAKEFILE so I can decide if I want to see this output or not.</p>
  
  <p>Is there a common way for doing this?</p>
  
  <p>The one way I see is to redirect output to <code>/dev/null</code> depending on this CMake's flag, but what about Windows and other OSes? </p>
  
  <p>Is there a portable or recommended way? What about default rules for C/C++ compiling commands?</p>