From ee90a4a5286699b9ea13e527ca0694d871835d38 Mon Sep 17 00:00:00 2001 From: nemtrif Date: Sun, 2 Oct 2022 17:51:50 -0400 Subject: [PATCH] Added compiler options to enable warnings. --- extern/ftest | 2 +- tests/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/extern/ftest b/extern/ftest index 9c7e60c..bf75576 160000 --- a/extern/ftest +++ b/extern/ftest @@ -1 +1 @@ -Subproject commit 9c7e60cc1b7c76f59e2ffbbc3dad15bafc5cdac5 +Subproject commit bf75576064fce2e07f52cd63a3e410f12358728b diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 4063df7..2662004 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -19,6 +19,10 @@ target_link_libraries(cpp17 PRIVATE utf8::cpp) target_link_libraries(apitests PRIVATE utf8::cpp) target_link_libraries(noexceptionstests PRIVATE utf8::cpp) +target_compile_options(${PROJECT_NAME} INTERFACE + $<$:/W4> + $<$>:-Wall -Wextra -Wpedantic>) + target_compile_options(noexceptionstests PUBLIC -fno-exceptions) set_target_properties(negative apitests noexceptionstests