[Insight-developers] can cmake generate an error if a variable doesn't exist ?

William A. Hoffman billlist at nycap.rr.com
Thu Jan 12 11:28:21 EST 2006


At 09:39 AM 1/12/2006, Gaetan Lehmann wrote:

>Hi,
>
>Can cmake generate an error if a variable doesn't exist, instead of  
>returning an empty value ?
>It would highly simplify debugging big cmake projects (like wrappers).

If you attempt to use a NOTFOUND variable for includes, libraries or library
directories cmake does produce an error.  I am not sure if that is
what you are looking for.  Also, this discussion really belongs on the
cmake mailing list.

-Bill



More information about the Insight-developers mailing list