-
Notifications
You must be signed in to change notification settings - Fork 464
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
Configuration Command Includes Unremovable Options #1639
Comments
If this much complexity is in fact necessary then I apologize for my misunderstanding. |
Thank you for opening this report. We may look into implementing a possibility to remove the configure arguments sometime in future. We want to track the community reactions to this idea in order to correctly identify the priority in our backlog. Regarding CMAKE_BUILD_TYPE, can you overwrite it to an empty string via settings cmake.configureSettings or cmake.configureArgs? Or by changing the cache variable entry (directly in CMakeCache.txt or with the command "CMake: Edit CMake Cache (UI)"? |
I tried adding
This didn't appear to fix the problem either. For context I'm building SerenityOS which uses very specific compiler flags which clash with the flags CMake adds when you specify a build type. |
Thank you for pointing to a repo that is directly impacted by the impossibility to have an empty CMAKE_BUILD_TYPE. We'll look into fixing this. |
I have the same issue with the same project, and other VSCode users in the SerenityOS developer community appear to struggle with it as well. |
Brief Issue Summary
It is not possible to not specify a CMAKE_BUILD_TYPE. More generally, CMake Tools appends many options to the
cmake
invocation that cannot be removed.Expected:
Allow configuration commands as simple as
cmake ..
from the build/ directory.Apparent Behavior:
Configuration commands include many more flags and typically look something like
without any way to remove these options and flags.
This becomes a problem on projects that require that users do not specify CMAKE_BUILD_TYPE.
Platform and Versions
The text was updated successfully, but these errors were encountered: