diff options
Diffstat (limited to 'src/core/CMakeLists.txt')
| -rw-r--r-- | src/core/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index d0c405ec7..9760be4e4 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -623,6 +623,17 @@ if (MSVC) | |||
| 623 | # 'context' : truncation from 'type1' to 'type2' | 623 | # 'context' : truncation from 'type1' to 'type2' |
| 624 | /we4305 | 624 | /we4305 |
| 625 | ) | 625 | ) |
| 626 | else() | ||
| 627 | target_compile_options(core PRIVATE | ||
| 628 | -Werror=conversion | ||
| 629 | -Werror=ignored-qualifiers | ||
| 630 | -Werror=implicit-fallthrough | ||
| 631 | -Werror=reorder | ||
| 632 | -Werror=sign-compare | ||
| 633 | -Werror=unused-but-set-parameter | ||
| 634 | -Werror=unused-but-set-variable | ||
| 635 | -Werror=unused-variable | ||
| 636 | ) | ||
| 626 | endif() | 637 | endif() |
| 627 | 638 | ||
| 628 | create_target_directory_groups(core) | 639 | create_target_directory_groups(core) |