[Cmake] Substitution or not between quotes?

Martin Trudeau mtrudeau at info-internet.net
Sat Aug 21 13:58:49 EDT 2004


Hi.

Could anyone explain to me why 

#################
IF("y" MATCHES "^y$")
MESSAGE("match")
ELSE("y" MATCHES "^y$")
MESSAGE("no match")
ENDIF("y" MATCHES "^y$")
###################

produces the message "match" if y is not defined
but "no match" if it is. I thought there was never any
substitution taking place for strings between quotes, unless
${...} was used. So, if there is substitution, why and how?

Thanks.

-Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20040821/bf089df4/attachment.htm


More information about the Cmake mailing list