cmake 3.20.1 now sets a variable called _name
I am seeing a behavior difference between cmake 3.19.6 and 3.20.1.
The following snippet...
if (foo STREQUAL "")
message(FATAL_ERROR "empty")
endif
... does not print "empty" if foo is non-empty with cmake 3.19.6. With 3.20.1, however, this generates the "empty" message even if foo is not empty.
Adding "" around foo makes it "work" with both versions.
I don't know if this was an intentional change - perhaps it just "worked by luck" before 3.20.1, and that was always an ill-formed expression.
Edited by Brad King