[CMake] numerical option at compile time

Jack Stalnaker jack.stalnaker at gmail.com
Thu Sep 6 10:15:10 EDT 2012


Using autoconf, I could specify a numerical option using AC_ARG_ENABLE.
This was useful for specifying a logging level at compile time. I could
pass --enable-logging=8 to the configure script to enable deep logging. Is
there a way to do this with cmake? Seems like "option" only allows yes or
no answers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120906/4bae304b/attachment.htm>


More information about the CMake mailing list