8000 CMake: Fix wrong MSVC related conditions by kou · Pull Request #981 · uber/h3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CMake: Fix wrong MSVC related conditions #981

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

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

kou
Copy link
Contributor
@kou kou commented Mar 6, 2025

Fix #980

MSVC and GCC/Clang use different style for command line options. We should use "MSVC" not "WIN32" for detecting MSVC. If we use "WIN32", mingw-w64 also uses MSVC style command line options because "WIN32" is true for both of MSVC and mingw-w64.

Fix uber#980

MSVC and GCC/Clang use different style for command line options. We
should use "MSVC" not "WIN32" for detecting MSVC. If we use "WIN32",
mingw-w64 also uses MSVC style command line options because "WIN32" is
true for both of MSVC and mingw-w64.
@kou
Copy link
Contributor Author
kou commented Mar 6, 2025

I noticed that we have similar problems not only for ENABLE_WARNINGS but also for WARNINGS_AS_ERRORS and debug related options.

@coveralls
Copy link

Coverage Status

coverage: 98.784%. remained the same
when pulling 46112ff on kou:cmake-enable-warnings-msvc
into f530729 on uber:master.

@ajfriend ajfriend merged commit 42450ce into uber:master Mar 7, 2025
42 checks passed
@kou kou deleted the cmake-enable-warnings-msvc branch March 8, 2025 06:38
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.

Windows: Wrong condition for ENABLE_WARNINGS
5 participants
0