New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken comparison of boolean values in CMakeLists.txt #1101
Comments
The problem is aggravated by the fact that the Build Dependencies section of Mosquitto's readme.md explicitly uses "yes" and "no" boolean values, contrary to the tests in CMakeLists.txt as per Mojca's comment. |
Of course those examples are for the regular |
Closes #1101. Thanks to Mojca Miklavec and Andrew L. Moore.
Thanks for the report and example. It's also nice to have a change which brings a functional improvement and makes it more readable all at the same time. Closed in 8fce261 , which will be part of 1.5.6 soon-ish. |
Thank you very much for the super quick fix. |
Closes #1101. Thanks to Mojca Miklavec and Andrew L. Moore.
The boolean options in CMake should not be compared with
STREQUAL
, but as boolean values instead, so that even-DUSE_LIBWRAP=yes
would work, for example, see the CMake documentation.For example, the following
would probably better be written as
The text was updated successfully, but these errors were encountered: