From 0e4d1aeef0958ba4a6526ed49ccb956ebecd44b5 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 30 Jan 2022 23:00:13 +0100 Subject: [PATCH] cmake: enable building with '-pedantic' --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb05441..102e31f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,7 @@ add_subdirectory(lib/da_threading EXCLUDE_FROM_ALL) if(NOT CMAKE_CXX_FLAGS MATCHES "-Wall") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") endif(NOT CMAKE_CXX_FLAGS MATCHES "-Wall") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic") if(CMAKE_BUILD_TYPE STREQUAL Debug)