[CMAKE] Get rid of add_compile_flags

Use add_compile_options and the like instead
This commit is contained in:
Jérôme Gardou 2020-09-21 12:16:02 +02:00 committed by Jérôme Gardou
parent 84621b3634
commit 00ed72d7e8
26 changed files with 158 additions and 198 deletions

View file

@ -12,11 +12,10 @@ if(MSVC)
endif()
endif()
# Disable warning " unary minus operator applied to unsigned type, result still unsigned"
add_compile_flags("/wd4146")
# Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
add_compile_flags("/wd4244")
# Disable warnings
add_compile_options(
/wd4146 # " unary minus operator applied to unsigned type, result still unsigned"
/wd4244) # "'=': conversion from 'a' to 'b', possible loss of data"
endif()