Fail build on warning C4715

This commit is contained in:
Georg Hagen
2024-08-16 12:44:37 +02:00
parent 731e5a7122
commit 5d80414956
2 changed files with 2 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ function(SetWarningSettings TARGET)
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "/wd4068")
set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "/we4715")
set_target_properties(${TARGET} PROPERTIES LINK_FLAGS "/ignore:4099")
endif()
endif()