diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/options.cmake | 1 | ||||
-rw-r--r-- | cmake/showoptions.cmake | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cmake/options.cmake b/cmake/options.cmake index 0125cff5f85..e939528584f 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -51,6 +51,7 @@ if(WITH_FILESYSTEM_WATCHER OR BUILD_SHARED_LIBS) set(BUILD_EFSW ON) endif() option(WITH_WARNINGS "Show all warnings during compile" 0) +option(WITH_WARNINGS_AS_ERRORS "Treat warnings as errors" 0) option(WITH_COREDEBUG "Include additional debug-code in core" 0) option(WITHOUT_METRICS "Disable metrics reporting (i.e. InfluxDB and Grafana)" 0) option(WITH_DETAILED_METRICS "Enable detailed metrics reporting (i.e. time each session takes to update)" 0) diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake index 385065a52bb..242b2500cde 100644 --- a/cmake/showoptions.cmake +++ b/cmake/showoptions.cmake @@ -61,7 +61,13 @@ endif() if(WITH_WARNINGS) message("* Show all warnings : Yes") else() - message("* Show compile-warnings : No (default)") + message("* Show all warnings : No (default)") +endif() + +if(WITH_WARNINGS_AS_ERRORS) + message("* Stop build on warning : Yes") +else() + message("* Stop build on warning : No (default)") endif() if(WITH_COREDEBUG) |