disable useless warnings for MSVC
This commit is contained in:
@@ -15,6 +15,11 @@ endfunction()
|
|||||||
function(SetWarningSettings TARGET)
|
function(SetWarningSettings TARGET)
|
||||||
if (LINUX)
|
if (LINUX)
|
||||||
target_compile_options(${TARGET} PRIVATE -Wall -Wno-unknown-pragmas)
|
target_compile_options(${TARGET} PRIVATE -Wall -Wno-unknown-pragmas)
|
||||||
|
elseif (WIN32)
|
||||||
|
if (MSVC)
|
||||||
|
set_target_properties(${TARGET} PROPERTIES COMPILE_FLAGS "/wd4068")
|
||||||
|
set_target_properties(${TARGET} PROPERTIES LINK_FLAGS "/ignore:4099")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user