Regression: EXISTS stops working with non-`${}` argument
Using if(EXISTS FILENAME)
no longer works in 3.9, though if(EXISTS ${FILENAME})
still does.
MWE:
set(FILENAME "/opt")
if(EXISTS FILENAME)
message("Direct works")
endif()
if(EXISTS ${FILENAME})
message("Other works")
endif()
On 3.9, this CMakeLists.txt
only prints Other works
.