From f7ce37729328d4f1061bd8bb52e3eecb0e49486c Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Fri, 2 Jun 2017 16:55:14 -0400 Subject: Add support for not breaking *nix build on warnings (#12039) Add a build flag to make -Werror optional and let the build continue even in the presence of warnings. This option is very useful for anyone compiling with a different (version of the) compiler. A different (version of the) compiler may produce a different set of warnings and a piece of code that compiles without warnings may emit warnings with a different (version of the) compiler. Resolves https://github.com/dotnet/coreclr/issues/8586 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f6e0987ebe..a6511de47c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ if(CORECLR_SET_RPATH) endif(CORECLR_SET_RPATH) OPTION(CMAKE_ENABLE_CODE_COVERAGE "Enable code coverage" OFF) +OPTION(CLR_CMAKE_WARNINGS_ARE_ERRORS "Warnings are errors" ON) # Ensure that python is present find_program(PYTHON python) -- cgit v1.2.3