Add missing warning flags
MODIFY
CMakeLists.txt
CMakeLists.txt
@@ -80,6 +80,12 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
+if(DISABLE_WERROR)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
+else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Werror")
+endif()
+
# Get dependencies
include(cmake/Dependencies.cmake)

Add missing warning flags