Skip to content
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

Fix1639 - Allow configure arguments overrides #3266

Merged
merged 4 commits into from
Jul 31, 2023

Conversation

andreeis
Copy link
Contributor

Fix for request #1639. Don't have unremovable options for the configure command. Allow user to override the usual args passed by the extention towards cmake via configureSettings.
The easy way to address this is to make sure we append the configure settings last in the configure command, not first as they were. For example, a user defined CMAKE_BUILD_TYPE would be passed to cmake but immediately overwritten by our default calculation. Since cmake can take multiple appearances of the same switch and the last one wins, makes sense to append configure settings (which come from the user) last.

…llow user to override the usual args passed by the extention towards cmake via configureSettings
gcampbell-msft
gcampbell-msft previously approved these changes Jul 28, 2023
@snehara99 snehara99 self-requested a review July 31, 2023 21:33
@andreeis andreeis merged commit 1205f3b into main Jul 31, 2023
@andreeis andreeis deleted the dev/andris/cmake_tools/fix1639_unremovable_options branch July 31, 2023 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants