-
-
Notifications
You must be signed in to change notification settings - Fork 776
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
Fix error building without CMAKE_BUILD_TYPE being set #3590
Conversation
This resolves the error building without a CMAKE_BUILD_TYPE. CMake Error at CMakeLists.txt:36 (string): string no output variable specified
It would be better to also fix other valid |
true that. Also, why is it |
This is used to set the initial build type, setting Strangely If you wanted to avoid relying on an undocumented variable you could always do something like this:
An alternative solution could be to support an empty
|
latter seems more reasonable (supporting empty) |
Fix error when the CMAKE_BUILD_TYPE variable isn't set & properly convert the build type to mesons build type.
Updated to convert the CMake build type to meson build types (with support for empty build type). |
cmake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
This resolves the error building without a CMAKE_BUILD_TYPE.
Describe your PR, what does it fix/add?
Resolve a build error with CMake.
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Is it ready for merging, or does it need work?
It's ready.