Skip to content

cmake: stop deleting -W<n> from CMAKE_C_FLAGS (MSVC) #17179

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

Closed

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 24, 2025

  1. CMAKE_C_FLAGS may apply to other projects, and deleting/altering it
    may be unexpected.

  2. We pass -W4/-Wall internally now, which do override custom
    -W<n> options in all supported MSVC versions.
    (as tested with Visual Studio generators)
    Ref: https://ci.appveyor.com/project/curlorg/curl/builds/51945416

Follow-up to e865420 #17047
Ref: 866e029 #1711

@vszakats vszakats added cmake Windows Windows-specific labels Apr 24, 2025
@vszakats vszakats marked this pull request as draft April 24, 2025 23:56
@github-actions github-actions bot added the CI Continuous Integration label Apr 24, 2025
@vszakats vszakats marked this pull request as ready for review April 25, 2025 00:25
@vszakats vszakats force-pushed the cm-avoid-touching-custom-cflags branch from 0a6536f to b630976 Compare April 25, 2025 00:27
@github-actions github-actions bot added the build label Apr 25, 2025
@vszakats vszakats changed the title cmake: stop modifying CMAKE_C_FLAGS (MSVC) cmake: stop deleting -W<n> from CMAKE_C_FLAGS (MSVC) Apr 25, 2025
@vszakats vszakats closed this in 1e9b48c Apr 25, 2025
@vszakats vszakats deleted the cm-avoid-touching-custom-cflags branch April 25, 2025 09:43
nbaws pushed a commit to nbaws/curl that referenced this pull request Apr 26, 2025
1. `CMAKE_C_FLAGS` may apply to other projects, and deleting/altering it
   may be unexpected.

2. We pass `-W4`/`-Wall` internally now, which do override custom
   `-W<n>` options in all supported MSVC versions.
   (as tested with Visual Studio generators)
   Ref: https://ci.appveyor.com/project/curlorg/curl/builds/51945416

Follow-up to e865420 curl#17047
Ref: 866e029 curl#1711

Closes curl#17179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build CI Continuous Integration cmake Windows Windows-specific
Development

Successfully merging this pull request may close these issues.

1 participant