[CMAKE] Use remove_target_compile_option when disabling manually enabled warnings

This commit is contained in:
Victor Perevertkin
2021-03-03 04:54:37 +03:00
parent b410220f39
commit fc2b105e5d
9 changed files with 24 additions and 21 deletions

View File

@@ -20,5 +20,5 @@ add_cd_file(TARGET wordpad DESTINATION reactos/system32 FOR all)
if(MSVC)
# Disable warning C4477 (printf format warnings)
target_compile_options(wordpad PRIVATE /wd4477)
remove_target_compile_option(wordpad "/we4477")
endif()

View File

@@ -50,7 +50,7 @@ add_executable(nfsd ${SOURCE} nfsd.rc)
if(MSVC AND (NOT USE_CLANG_CL))
# Disable warning C4477 (printf format warnings)
target_compile_options(nfsd PRIVATE "/wd4477")
remove_target_compile_option(nfsd "/we4477")
else()
# FIXME: Tons of warnings.
target_compile_options(nfsd PRIVATE "-w")