From b8a350022265e2da239e3f46f21fe5370e35b86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20B=C3=B6ger?= Date: Mon, 31 May 2021 09:02:22 +0100 Subject: [PATCH] build with -Wall when using clang or gcc --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 383b6b26..d8206387 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,11 @@ if (NOT BUILD_SHARED_LIBS) target_compile_definitions(libchibi-common INTERFACE SEXP_STATIC_LIBRARY=1) endif() +target_compile_options(libchibi-common + INTERFACE + $<$:-Wall> + $<$,$>:-Wall>) + target_include_directories(libchibi-common INTERFACE $