From f982314858fb47e60c8545af0583a034a1c29f0f Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 7 Apr 2024 16:13:33 +0100 Subject: [PATCH] Eanble all warnings in CMake --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 680864d2..22910509 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,12 @@ target_include_directories(RadioLib PUBLIC $ $) +# use c++20 standard +set_property(TARGET RadioLib PROPERTY CXX_STANDARD 20) + +# enable most warnings +target_compile_options(RadioLib PRIVATE -Wall -Wextra) + include(GNUInstallDirs) install(TARGETS RadioLib