Navigation


Changeset 1406:deaa89f4a994 in freeDiameter


Ignore:
Timestamp:
Feb 18, 2020, 2:48:26 PM (4 years ago)
Author:
Luke Mewburn <luke@mewburn.net>
Branch:
default
Phase:
public
Message:

add ERRORS_ON_WARNINGS to enable fatal compiler warnings

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r1398 r1406  
    7272ENDIF (CMAKE_BUILD_TYPE MATCHES "Debug|Profiling|DebugValgrind")
    7373
     74# Build with fatal warnings?
     75IF (ERRORS_ON_WARNINGS)
     76  SET(CMAKE_C_FLAGS "-Wall -Werror ${CMAKE_C_FLAGS}")
     77ENDIF (ERRORS_ON_WARNINGS)
     78
    7479# some subfolders use yacc and lex parsers
    7580SET(BISON_GENERATE_DEFINES TRUE)
     
    110115        SUBDIRS(tests)
    111116ENDIF ( BUILD_TESTING )
    112 
  • include/freeDiameter/CMakeLists.txt

    r1333 r1406  
    1515# Find TODO items in the code easily ?
    1616OPTION(ERRORS_ON_TODO "(development) Generate compilation errors on TODO items ?" OFF)
     17
     18# Compiler warnings are fatal?
     19OPTION(ERRORS_ON_WARNINGS "(development) Compiler warnings cause compilation errors ?" OFF)
    1720
    1821# In DEBUG mode, each log can contain pid, calling function and file for easy debug. Set to ON to display this information.
Note: See TracChangeset for help on using the changeset viewer.