diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-09-20 13:19:42 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-09-21 05:50:20 +0200 |
commit | 70d2b3b34d516a4b7f98218a60da372900f53d1e (patch) | |
tree | 1843dc1faa2f48f97029a1b4dfeb0504ad85a1cd /cmake/showoptions.cmake | |
parent | 92130c97be18fe36e84528766852e91fdd0ab8db (diff) |
Build: Add WITH_WARNINGS_AS_ERRORS cmake option that turns compile warnings into compile errors
(cherry picked from commit 7ac0c685dd01bdce2d1ee0bb878e5044b3c1fffa)
Diffstat (limited to 'cmake/showoptions.cmake')
-rw-r--r-- | cmake/showoptions.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/showoptions.cmake b/cmake/showoptions.cmake index 12cf83a467e..f842aead712 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) |