From 870541d613c66e283c80b535ed19be2f7b6d28d4 Mon Sep 17 00:00:00 2001 From: Alex Dadukin Date: Sat, 29 Jun 2024 18:42:59 +0100 Subject: [PATCH] Enable warning as error for JSONC target --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 20ba932..d2ca743 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,8 @@ add_library(jsonc src/json.cpp ) +set_property(TARGET jsonc PROPERTY COMPILE_WARNING_AS_ERROR ON) + target_include_directories(jsonc PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include) if (ASSERT)