https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255480

--- Comment #4 from John Hein <[email protected]> ---
(In reply to John Hein from comment #3)
This looks like it could be a cmake bug or at least an undocumented behavior
change.  The cmake-language(7) man page says:

"The if() command has a special condition syntax that allows for variable
references in the short form <variable> instead of ${<variable>}. However,
environment and cache variables always need to be referenced as
$ENV{<variable>} or $CACHE{<variable>}."

I don't see that adding the ${} matters.  But it seems that 'if (foo STREQUAL
"")' wants "" around foo now.  With cmake 3.19.6, it works fine without "". 
With cmake 3.20.1, that's when the test condition for 'STREQUAL ""' is true
despite 'foo' having a non-empty value.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-desktop
To unsubscribe, send any mail to "[email protected]"

Reply via email to