From 4c6e56320a8bb31cb1ce410db6806efb20ae68bf Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sun, 16 Feb 2020 00:57:00 +1100 Subject: [PATCH] msvc: suppress C4267 warning --- app/CMakeLists.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index f03c39bd0..c0ea9c9cd 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -70,6 +70,7 @@ if(MSVC) /WX /W4 /wd4127 + /wd4267 /wd4456 /wd4706 /experimental:external @@ -78,7 +79,17 @@ if(MSVC) "$<$:/O2>" ) else() - target_compile_options(${OLIVE_TARGET} PRIVATE -O2 -Werror -Wuninitialized -pedantic-errors -Wall -Wextra -Wno-unused-parameter) + target_compile_options( + ${OLIVE_TARGET} + PRIVATE + -O2 + -Werror + -Wuninitialized + -pedantic-errors + -Wall + -Wextra + -Wno-unused-parameter + ) endif() target_include_directories(