We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the Bug
Trying to configure the project using Ninja Multi-Config generator result in an error.
Ninja Multi-Config
To Reproduce
Doing the following:
mkdir build && cd build cmake -G "Ninja Multi-Config" ..
Will result in an error:
CMake Error at CMakeLists.txt:126 (if): if given arguments: "NOT" "CMAKE_BUILD_TYPE" "OR" "STREQUAL" "Debug" Unknown arguments specified
System Details
Additional Context
The issue comes from the CMakeLists.txt file line 126:
CMakeLists.txt
if (NOT CMAKE_BUILD_TYPE OR ${CMAKE_BUILD_TYPE} STREQUAL "Debug")
CMake conditions does not use short-circuit as stated there
Binary logical operators AND and OR, from left to right, without any short-circuit.
CMake being CMake, the issue only appears using Ninja Multi-Config.
The text was updated successfully, but these errors were encountered:
Thanks @raplonu . We are submitting a workaround for now. I didn't see any other clean way of doing this in CMake with an OR condition.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the Bug
Trying to configure the project using
Ninja Multi-Config
generator result in an error.To Reproduce
Doing the following:
Will result in an error:
System Details
Additional Context
The issue comes from the
CMakeLists.txt
file line 126:CMake conditions does not use short-circuit as stated there
CMake being CMake, the issue only appears using
Ninja Multi-Config
.The text was updated successfully, but these errors were encountered: