[cmake-developers] Introducing: message(DEBUG)

Brad King brad.king at kitware.com
Mon Mar 5 16:45:47 EST 2012


On 3/5/2012 4:03 PM, Alexander Neundorf wrote:
> Is there a chance that something like
> message(VARIABLES var1 var2 ... varN)
> which would print the name followed by the value of the given variables
> ("FOO_LIBRARY=/usr/lib/libfoo.so HAVE_BAR=1 ...")
>
> would be also accepted ?
>
> I need that all the time, and it's somewhat related to the patch here.

I'd rather not have too many magic modes of message().  Perhaps this
thread should instead propose a "cmake_debug" command which can have
all kinds of subcommands for specific use cases like this:

   cmake_debug(MESSAGE ...)
   cmake_debug(VARIABLES ...)

-Brad



More information about the cmake-developers mailing list