In addition to the current ON and OFF options, this adds the FORCE_ON
option, which causes a configuration error if libxml2 cannot be used.
Details
Diff Detail
Event Timeline
I tested locally that if there's a current LLVM_ENABLE_LIBXML2:BOOL in CMakeCache.txt, that doesn't break things. There is no warning or error, it just seems to ignore the new string option and use the cached bool one.
So I guess this means it won't disrupt current builds, and builds that want to use FORCE_ON need to nuke their cache and reconfigure, which is expected.
lgtm
cmake/config-ix.cmake | ||
---|---|---|
163 | I guess the string value OFF evaluates to false in this context? Scary loose typing, batman! |
cmake/config-ix.cmake | ||
---|---|---|
163 | Yup, also "0, OFF, NO, FALSE, N, IGNORE, NOTFOUND, the empty string, or ends in the suffix -NOTFOUND" :-) |
I guess the string value OFF evaluates to false in this context? Scary loose typing, batman!