mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 09:18:34 +00:00
[CMAKE] Replace custom functions to built-in ones
add_target_compile_definitions -> target_compile_definitions add_target_compile_flags -> target_compile_options add_target_include_directories -> target_include_directories
This commit is contained in:
parent
480f729f6d
commit
7e069ccdb2
93 changed files with 163 additions and 180 deletions
|
@ -89,11 +89,11 @@ target_link_libraries(unicode PRIVATE host_includes)
|
|||
|
||||
if(MSVC)
|
||||
# Disable warning "'<': signed/unsigned mismatch"
|
||||
add_target_compile_flags(unicode "/wd4018")
|
||||
target_compile_options(unicode PRIVATE "/wd4018")
|
||||
|
||||
# Disable warning "unary minus operator applied to unsigned type, result still unsigned"
|
||||
add_target_compile_flags(unicode "/wd4146")
|
||||
target_compile_options(unicode PRIVATE "/wd4146")
|
||||
|
||||
# Disable warning "conversion from 'const WCHAR' to 'char', possible loss of data"
|
||||
add_target_compile_flags(unicode "/wd4244")
|
||||
target_compile_options(unicode PRIVATE "/wd4244")
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue