[CMake] Bug in CMake documentation?

Esben Mose Hansen kde at mosehansen.dk
Sun May 9 05:12:54 EDT 2010


Hi,

I quote from the documentation (2.8)

>   if(<constant>)
> 
> True if the constant is 1, ON, YES, TRUE, Y, or a non-zero number. False if
> the constant is 0, OFF, NO, FALSE, N, IGNORE, "", or ends in the suffix
> '-NOTFOUND'. Named boolean constants are case-insensitive.

So what is the value of say "/home/esben/kde/lib/mylibrary.so"? Experimental 
test and common sense say true, but the documentation doesn't say so. Wouldn't 
the correct documentation be

  if(<constant>)
False if the constant is 0, OFF, NO, FALSE, N, IGNORE, "", or ends in the 
suffix '-NOTFOUND'. Named boolean constants are case-insensitive. IF the 
constant has any other value, it is true.

Right?

-- 
Kind regards, Esben


More information about the CMake mailing list