diff options
author | jiseob.jang <jiseob.jang@samsung.com> | 2017-09-06 20:40:24 +0900 |
---|---|---|
committer | jiseob.jang <jiseob.jang@samsung.com> | 2017-09-07 11:55:42 +0900 |
commit | cb9516da9df966079e5a34490139eec68c38dafa (patch) | |
tree | 39d5565943e78c35dd013cc771ed2980788fff38 /compileoptions.cmake | |
parent | 61d6a817e39d3bae0f47dbc09838d51db22a5d30 (diff) | |
download | coreclr-cb9516da9df966079e5a34490139eec68c38dafa.tar.gz coreclr-cb9516da9df966079e5a34490139eec68c38dafa.tar.bz2 coreclr-cb9516da9df966079e5a34490139eec68c38dafa.zip |
Imported Upstream version 2.0.0.12082upstream/2.0.0.12082
Diffstat (limited to 'compileoptions.cmake')
-rw-r--r-- | compileoptions.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/compileoptions.cmake b/compileoptions.cmake index 75d51fd5bb..9f9f28eaf5 100644 --- a/compileoptions.cmake +++ b/compileoptions.cmake @@ -23,8 +23,10 @@ if (CLR_CMAKE_PLATFORM_UNIX) # after hitting just about 20 errors. add_compile_options(-ferror-limit=4096) - # All warnings that are not explicitly disabled are reported as errors - add_compile_options(-Werror) + if (CLR_CMAKE_WARNINGS_ARE_ERRORS) + # All warnings that are not explicitly disabled are reported as errors + add_compile_options(-Werror) + endif(CLR_CMAKE_WARNINGS_ARE_ERRORS) # Disabled warnings add_compile_options(-Wno-unused-private-field) @@ -121,7 +123,7 @@ if (WIN32) endif (WIN32) -if(CMAKE_ENABLE_CODE_COVERAGE) +if(CLR_CMAKE_ENABLE_CODE_COVERAGE) if(CLR_CMAKE_PLATFORM_UNIX) string(TOUPPER ${CMAKE_BUILD_TYPE} UPPERCASE_CMAKE_BUILD_TYPE) @@ -138,4 +140,4 @@ if(CMAKE_ENABLE_CODE_COVERAGE) message(FATAL_ERROR "Code coverage builds not supported on current platform") endif(CLR_CMAKE_PLATFORM_UNIX) -endif(CMAKE_ENABLE_CODE_COVERAGE) +endif(CLR_CMAKE_ENABLE_CODE_COVERAGE) |