-
Notifications
You must be signed in to change notification settings - Fork 0
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
Move 2 MSVC warnings outside if ENABLE_WARNINGS #7
Comments
I think it is necessary to define the same macros as in the if and else if branches. Even if you don’t use another compiler than Visual Studio, gcc or clang today, it would be a shame to halt the compilation on another compiler just because you didn’t define the macros for it. |
Yeah, good point I'll be best moving the NOMINMAX into something like an |
- Update 3rd party libraries to the newest version (Closes #6) - Removed Mangadex code since I will need to redo all of it anyways - Move Windows NOMINMAX define out of MSVC compiler to an if(Windows) conditional (Closes #7) - Move MSVC /permissive- flag outside of the if(ENABLE_WARNINGS) conditional (Closes #7) - Merge Clang and AppleClang flags (again) - Clean-up top level CMakeLists.txt by moving the changes to appropriate .cmake files - Drop generator from CMakePresets.json now that its not required by default. - Update .gitignore - Restructure how I handle handle source files. The time to do this sort of thing is now, figuring out what works best for me and the project is when its infancy and I am the sole contributor. We do include the beginning skeleton of the new window.[cpp/h] files since it was easier then more mucking about in the cmake files. ;)
- Update 3rd party libraries to the newest version (Closes #6) - Removed Mangadex code since I will need to redo all of it anyways - Move Windows NOMINMAX define out of MSVC compiler to an if(Windows) conditional (Closes #7) - Move MSVC /permissive- flag outside of the if(ENABLE_WARNINGS) conditional (Closes #7) - Merge Clang and AppleClang flags (again) - Clean-up top level CMakeLists.txt by moving the changes to appropriate .cmake files - Drop generator from CMakePresets.json now that its not required by default. - Update .gitignore - Restructure how I handle handle source files. The time to do this sort of thing is now, figuring out what works best for me and the project is when its infancy and I am the sole contributor. We do include the beginning skeleton of the new window.[cpp/h] files since it was easier then more mucking about in the cmake files. ;)
manga-manager/cmake/CompilerWarnings.cmake
Lines 111 to 112 in 08cb83a
Best to move these out of the ENABLE_WARNINGS section code and enable them unconditionally.
Edit: Move
NOMINMAX
to anif(WINDOWS)
blockThe text was updated successfully, but these errors were encountered: