mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 20:03:44 +00:00
[CMAKE] Get rid of replace_compile_flags
Introduce a finer-grained remove_target_compile_option instead
This commit is contained in:
parent
b52fa999eb
commit
7e116f0ef3
27 changed files with 138 additions and 144 deletions
|
@ -94,8 +94,8 @@ endif()
|
|||
|
||||
if(MSVC AND (NOT USE_CLANG_CL))
|
||||
# Disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include"
|
||||
replace_compile_flags("/we4101" " ")
|
||||
replace_compile_flags("/we4189" " ")
|
||||
remove_target_compile_option(ext2fs "/we4101")
|
||||
remove_target_compile_option(ext2fs "/we4189")
|
||||
target_compile_options(ext2fs PRIVATE /wd4189 /wd4142 /wd4101)
|
||||
else()
|
||||
target_compile_options(ext2fs PRIVATE -Wno-pointer-sign -Wno-unused-function)
|
||||
|
|
|
@ -87,8 +87,8 @@ if(USE_CLANG_CL OR (NOT MSVC))
|
|||
endif()
|
||||
else()
|
||||
#disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include"
|
||||
replace_compile_flags("/we4101" " ")
|
||||
replace_compile_flags("/we4189" " ")
|
||||
remove_target_compile_option(reiserfs "/we4101")
|
||||
remove_target_compile_option(reiserfs "/we4189")
|
||||
target_compile_options(reiserfs PRIVATE /wd4189 /wd4142 /wd4101)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue