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

Update CMakeLists.txt #1844

Closed

Conversation

wonderinglostsoul44
Copy link

Factored Repeated Flags

Moved repeated warning disable flags (/wd4100 /wd4189 /wd4065, etc.) into a single BASE_MSVC_FLAGS. Debug vs. Release

Separated DEBUG_FLAGS and RELEASE_FLAGS for clarity, and appended them appropriately. Removed Repetition

Avoided rewriting the set(CMAKE_CXX_FLAGS) lines multiple times for each library, using a consistent approach across both freetype and harfbuzz. Essential Logic Retained

The if(WIN32) block sets flags for MSVC or Clang on Windows. The same flags are still there, just organized more succinctly. Comments and Organization

Added short comments (e.g., # Additional debug flags) to clarify which lines do what, improving readability without altering behavior. No Behavior Changes

The final compiled flags are effectively the same, preserving the original settings for debug vs. release and for Clang vs. MSVC.

Factored Repeated Flags

Moved repeated warning disable flags (/wd4100 /wd4189 /wd4065, etc.) into a single BASE_MSVC_FLAGS.
Debug vs. Release

Separated DEBUG_FLAGS and RELEASE_FLAGS for clarity, and appended them appropriately.
Removed Repetition

Avoided rewriting the set(CMAKE_CXX_FLAGS) lines multiple times for each library, using a consistent approach across both freetype and harfbuzz.
Essential Logic Retained

The if(WIN32) block sets flags for MSVC or Clang on Windows. The same flags are still there, just organized more succinctly.
Comments and Organization

Added short comments (e.g., # Additional debug flags) to clarify which lines do what, improving readability without altering behavior.
No Behavior Changes

The final compiled flags are effectively the same, preserving the original settings for debug vs. release and for Clang vs. MSVC.
@schombert
Copy link
Owner

Hey, so we have been dealing with an influx of drive-by AI PRs lately. I encourage you to drop by the discord to say "hi" so that we know that there is a real person behind this. We are very friendly, I promise.

@wonderinglostsoul44
Copy link
Author

ok will do

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.

2 participants