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

Fix CMake debug optimization flags on MinGW #82

Merged
merged 1 commit into from
Nov 24, 2024
Merged

Conversation

santiberna
Copy link
Contributor

I have been working on a MinGW CMake project and noticed that my debug optimization level was -Og as opposed to -O0 without changing it myself. I found out that fastgltf declares -Og as a PUBLIC compilation flag on debug builds in MinGW.

This pull request simply replaces the PUBLIC specifier to PRIVATE, stopping this flag from leaking to users of the library. With this change the library still correctly compiles and loads models correctly, but it is worth testing if this doesn't break any specific use case.

Signed-off-by: Santiago Bernardino <santibberna@gmail.com>
@spnda spnda added enhancement New feature or request done Everything has been addressed labels Nov 24, 2024
@spnda spnda merged commit 22f1245 into spnda:main Nov 24, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done Everything has been addressed enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants