From 0758b3906174815ff34c2f5b7a89ede2ffd627ec Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 18 Aug 2018 02:19:52 +0300 Subject: [PATCH] Stop compilation on first error --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3eee0dae..c0b8a373 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCH add_compile_options("-Wextra") add_compile_options("-Wconversion") add_compile_options("-pedantic") + add_compile_options("-Wfatal-errors") endif()