string(APPEND CMAKE_C_FLAGS " -fno-common")
string(APPEND CMAKE_CXX_FLAGS " -fno-common")
+option(ENABLE_WERROR "Unconditionally make all compiler warnings fatal" OFF)
+
if(MSVC)
# Use the highest warning level
if(WALL)
)
set(WARNINGS_ERRORS
)
+ if(ENABLE_WERROR)
+ list(APPEND WARNINGS error)
+ endif()
endif()
generate_compiler_warning_flags(
// build DOXYGEN documentation (requires Doxygen)
DBUS_ENABLE_DOXYGEN_DOCS:BOOL=OFF
+// Unconditionally make all compiler warnings fatal
+ENABLE_WERROR:BOOL=OFF
+
// build qt help documentation (requires qhelpgenerator(-qt5));
// set INSTALL_QCH_DIR for custom qch installation path
ENABLE_QT_HELP:STRING=AUTO