suppress unknown pragma warnings for MSVC
This commit is contained in:
@@ -24,8 +24,7 @@ function(SetWarningSettings TARGET)
|
||||
elseif (WIN32)
|
||||
if (MSVC)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
add_compile_options(/wd4068)
|
||||
set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "/wd4068")
|
||||
target_compile_options(${TARGET} PRIVATE "/wd4068;")
|
||||
set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "/we4715")
|
||||
set_target_properties(${TARGET} PROPERTIES LINK_FLAGS "/ignore:4099")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user