Adjust MSVC warning level
This commit is contained in:
parent
179970a0d5
commit
b0737b882d
1 changed files with 1 additions and 2 deletions
|
|
@ -26,8 +26,7 @@ if (BUILD_SHARED_LIBS_OVERRIDE)
|
|||
endif()
|
||||
|
||||
if(MSVC)
|
||||
target_compile_options(moonlight-common-c PRIVATE /W4 /wd4100 /wd4232)
|
||||
target_compile_definitions(moonlight-common-c PRIVATE -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_DEPRECATE=1)
|
||||
target_compile_options(moonlight-common-c PRIVATE /W3 /wd4100 /wd4232 /WX)
|
||||
target_link_libraries(moonlight-common-c PRIVATE ws2_32.lib qwave.lib winmm.lib)
|
||||
else()
|
||||
target_compile_options(moonlight-common-c PRIVATE -Wall -Wextra -Wno-unused-parameter -Werror)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue