From 6fecc8eb38ebcd2a8ecd42f2988b97a7957e1945 Mon Sep 17 00:00:00 2001 From: Carson Holloway Date: Sat, 18 Jul 2020 21:52:00 +1000 Subject: [PATCH] Added MSVC options to CMakeLists.txt. --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a9d8a9..4af2b38 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,7 +86,9 @@ target_compile_options(${PROJECT_NAME} -Wno-missing-braces -Wold-style-cast -Wshadow - -Wweak-vtables> + -Wweak-vtables + -Werror + -Wall> $<$:-Waddress -Waggregate-return -Wformat-nonliteral @@ -101,9 +103,10 @@ target_compile_options(${PROJECT_NAME} -Wno-unused-parameter -Wunreachable-code -Wwrite-strings - -Wpointer-arith> - -Wall - -Werror + -Wpointer-arith + -Werror + -Wall> + $<$:/Wall> ) write_basic_package_version_file(${PROJECT_NAME}ConfigVersion.cmake