changeset 1413:1979715b744f

fix ERRORS_ON_WARNINGS cmake config failure Configure with -Wno-error if enabling -Werror.
author Luke Mewburn <luke@mewburn.net>
date Tue, 18 Feb 2020 18:38:00 +1100
parents 4768e3bf1c9b
children f6f12521c2aa
files CMakeLists.txt
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Tue Feb 18 17:21:20 2020 +1100
+++ b/CMakeLists.txt	Tue Feb 18 18:38:00 2020 +1100
@@ -74,6 +74,7 @@
 # Build with fatal warnings?
 IF (ERRORS_ON_WARNINGS)
   SET(CMAKE_C_FLAGS "-Wall -Werror ${CMAKE_C_FLAGS}")
+  SET(CMAKE_REQUIRED_FLAGS "-Wno-error ${CMAKE_REQUIRED_FLAGS}")
 ENDIF (ERRORS_ON_WARNINGS)
 
 # some subfolders use yacc and lex parsers
"Welcome to our mercurial repository"