Re: [CMake] Reverse logic

2014-01-30 Thread Matthew Woehlke
On 2014-01-29 19:09, Rob McDonald wrote: I feel like this is a really dumb question, but I've got myself wrapped around the axel I'd like to use a negative conditional on a variable that may or may not be defined... say USE_SYSTEM_FOO So, I'd like to do something like this... IF( NOT ${US

Re: [CMake] Reverse logic

2014-01-29 Thread Jean-Christophe Fillion-Robin
Hi Rob, What about: if( NOT USE_SYSTEM_FOO) # Build my own FOO endif() Hth Jc On Wed, Jan 29, 2014 at 7:09 PM, Rob McDonald wrote: > I feel like this is a really dumb question, but I've got myself wrapped > around the axel > > I'd like to use a negative conditional on a variable that

[CMake] Reverse logic

2014-01-29 Thread Rob McDonald
I feel like this is a really dumb question, but I've got myself wrapped around the axel I'd like to use a negative conditional on a variable that may or may not be defined... say USE_SYSTEM_FOO So, I'd like to do something like this... IF( NOT ${USE_SYSTEM_FOO} ) # Build my own FOO ENDI