[CMake] numerical option at compile time

2012-09-06 Thread Jack Stalnaker
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

Re: [CMake] numerical option at compile time

2012-09-06 Thread Michael Wild
On 09/06/2012 04:15 PM, Jack Stalnaker wrote: 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

Re: [CMake] numerical option at compile time

2012-09-06 Thread Eric Noulard
2012/9/6 Michael Wild them...@gmail.com: On 09/06/2012 04:15 PM, Jack Stalnaker wrote: 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