aboutsummaryrefslogtreecommitdiff
path: root/unit/CMakeLists.txt
diff options
context:
space:
mode:
authorMikhail Romanko <me@blankhex.com>2024-06-16 12:23:21 +0300
committerMikhail Romanko <me@blankhex.com>2024-06-16 12:23:21 +0300
commitecab74bb2233e5f3dfc59698a6296366209ab9b1 (patch)
treea1538cc00914ccaeafee53f344fd13e96a2494fc /unit/CMakeLists.txt
parentbfa33b377872d3fb7aa471e8a0af3382081971f3 (diff)
downloadbhlib-old-ecab74bb2233e5f3dfc59698a6296366209ab9b1.tar.gz
Enable additional compiler warnings
Diffstat (limited to 'unit/CMakeLists.txt')
-rw-r--r--unit/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/unit/CMakeLists.txt b/unit/CMakeLists.txt
index f1eef3e..db44dbd 100644
--- a/unit/CMakeLists.txt
+++ b/unit/CMakeLists.txt
@@ -20,3 +20,10 @@ set(BHUNIT_HEADER
# Library
add_library(bhunit STATIC ${BHUNIT_SOURCE} ${BHUNIT_HEADER})
target_include_directories(bhunit PUBLIC include)
+
+# Enable warnings and pedantics
+if(MSVC)
+ target_compile_options(bhunit PRIVATE /W4)
+else()
+ target_compile_options(bhunit PRIVATE -Wall -Wextra -Wpedantic)
+endif() \ No newline at end of file