From 686e0a9fc307b38e698055ba258a27fd24cec253 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 31 Oct 2019 18:38:43 -0500 Subject: Build: -Wall -Wextra -Werror --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 64904db..b33b88d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,13 @@ project(Horizon add_definitions(-DVERSTR="${PROJECT_VERSION}") +if(MSVC) + add_compile_options(/W4 /WX) +else() + add_compile_options(-Wall -Wextra -Werror) +endif() + + option(BUILD_TOOLS "Enable building of tools (Validator, Simulator, etc)" ON) -- cgit v1.2.3-60-g2f50