From a70929c3815a0be735119225d18645da308e51c1 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 6 Jan 2015 10:44:37 -0800 Subject: CMake: Add an ENABLE_CODE_ANALYSIS option. Currently Visual Studio-only. Enabling it adds /analyze:WX- to LOCAL_CFLAGS, similar to config.nmake. Change-Id: Ida68831e85f5f04b9f84faa95a39fed24e5f490d Reviewed-on: https://code.wireshark.org/review/6346 Reviewed-by: Gerald Combs --- CMakeOptions.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeOptions.txt') diff --git a/CMakeOptions.txt b/CMakeOptions.txt index 173eb39835..cfb0fda2ec 100644 --- a/CMakeOptions.txt +++ b/CMakeOptions.txt @@ -19,6 +19,8 @@ option(AUTOGEN_pidl "Autogenerate pidl dissectors" OFF) option(DISABLE_WERROR "Do not treat warnings as errors" OFF) option(ENABLE_EXTRA_COMPILER_WARNINGS "Do additional compiler warnings (disables -Werror)" OFF) +option(ENABLE_CODE_ANALYSIS "Enable the compiler's static analyzer if possible" OFF) + # # Leave GTK2 the default on Windows, looks better than GTK3 # -- cgit v1.2.1