[CMake] IF(string) is false. Why?

Brandon Van Every bvanevery at gmail.com
Tue Oct 30 20:29:20 EDT 2007


On 10/30/07, Brandon Van Every <bvanevery at gmail.com> wrote:
> On 10/30/07, Brandon Van Every <bvanevery at gmail.com> wrote:
> > On 10/30/07, David Cole <david.cole at kitware.com> wrote:
> > > Because "WHATEVER" is not empty...
> >
> > Then it should be true.
>
> I say the following should set the result to "valid".
>
> > MACRO(NOQUOTES_ALONE literal_string result)
> >   IF(${literal_string})
> >     SET(result "valid")
> >   ELSE(${literal_string})
> >     MESSAGE(SEND_ERROR "I don't like the input!")
> >   ENDIF(${literal_string})
> > ENDMACRO(NOQUOTES_ALONE)
> > NOQUOTES_ALONE("WHATEVER" out)

GOOD GOD I cannot communicate this evening.  Regard this alone.


Cheers,
Brandon Van Every


More information about the CMake mailing list