diff options
author | bunnei <bunneidev@gmail.com> | 2020-11-03 20:00:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 20:00:23 +0100 |
commit | 222fe75401f0672de78c07ba901e650ccc8aa96a (patch) | |
tree | b3f29608f58df5bc86c502171a5f66e2692ec3d8 /src/common/CMakeLists.txt | |
parent | Merge pull request #4878 from bunnei/unload-nrr (diff) | |
parent | common: Enable warnings as errors (diff) | |
download | yuzu-222fe75401f0672de78c07ba901e650ccc8aa96a.tar yuzu-222fe75401f0672de78c07ba901e650ccc8aa96a.tar.gz yuzu-222fe75401f0672de78c07ba901e650ccc8aa96a.tar.bz2 yuzu-222fe75401f0672de78c07ba901e650ccc8aa96a.tar.lz yuzu-222fe75401f0672de78c07ba901e650ccc8aa96a.tar.xz yuzu-222fe75401f0672de78c07ba901e650ccc8aa96a.tar.zst yuzu-222fe75401f0672de78c07ba901e650ccc8aa96a.zip |
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r-- | src/common/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index e50ab2922..207c7a0a6 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -190,6 +190,22 @@ if(ARCHITECTURE_x86_64) ) endif() +if (MSVC) + target_compile_definitions(common PRIVATE + # The standard library doesn't provide any replacement for codecvt yet + # so we can disable this deprecation warning for the time being. + _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING + ) + target_compile_options(common PRIVATE + /W4 + /WX + ) +else() + target_compile_options(common PRIVATE + -Werror + ) +endif() + create_target_directory_groups(common) find_package(Boost 1.71 COMPONENTS context headers REQUIRED) |