diff options
| author | Mikhail Romanko <me@blankhex.com> | 2024-06-16 12:23:21 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2024-06-16 12:23:21 +0300 |
| commit | ecab74bb2233e5f3dfc59698a6296366209ab9b1 (patch) | |
| tree | a1538cc00914ccaeafee53f344fd13e96a2494fc /CMakeLists.txt | |
| parent | bfa33b377872d3fb7aa471e8a0af3382081971f3 (diff) | |
| download | bhlib-old-ecab74bb2233e5f3dfc59698a6296366209ab9b1.tar.gz | |
Enable additional compiler warnings
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 086f166..299eda9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,6 +127,13 @@ configure_file(include/bh/internal/config.in include/bh/internal/config.h) add_library(bhlib STATIC ${BH_SOURCE} ${BH_HEADER}) target_include_directories(bhlib PUBLIC ${BH_INCLUDE_DIRS}) +# Enable warnings and pedantics +if(MSVC) + target_compile_options(bhlib PRIVATE /W4) +else() + target_compile_options(bhlib PRIVATE -Wall -Wextra -Wpedantic) +endif() + # Runtime definition add_executable(main main.c |
