[CMAKE] Fix TREAT_ALL_WARNINGS_AS_ERRORS

This commit is contained in:
Timo Kreuzer
2025-05-03 08:00:44 +00:00
parent 2d57c60148
commit 4cee67df3f
+1 -1
View File
@@ -100,7 +100,7 @@ endif()
# On x86 Debug builds, if it's not Clang-CL or msbuild, treat all warnings as errors
if ((ARCH STREQUAL "i386") AND (CMAKE_BUILD_TYPE STREQUAL "Debug") AND (CMAKE_C_COMPILER_ID STREQUAL "MSVC") AND (NOT MSVC_IDE))
set(TREAT_ALL_WARNINGS_AS_ERRORS=TRUE)
set(TREAT_ALL_WARNINGS_AS_ERRORS TRUE)
endif()
# Define ALLOW_WARNINGS=TRUE on the cmake/configure command line to bypass errors