diff options
author | liushuyu <liushuyu011@gmail.com> | 2021-12-24 02:23:02 +0100 |
---|---|---|
committer | liushuyu <liushuyu011@gmail.com> | 2022-07-05 05:21:56 +0200 |
commit | 40493231edad7085544b79b6c3ac7360d112170c (patch) | |
tree | 5124d6fde6ca6b913c13aca60620c134e3bcf3f1 /CMakeLists.txt | |
parent | CI: use Ninja to build stuff faster (diff) | |
download | yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.gz yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.bz2 yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.lz yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.xz yuzu-40493231edad7085544b79b6c3ac7360d112170c.tar.zst yuzu-40493231edad7085544b79b6c3ac7360d112170c.zip |
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index be70c04ae..80a8d4ed8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -627,6 +627,14 @@ add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_DATE_TIME_NO_LIB -DBOOST_REGEX_NO_LIB ) +# Adjustments for MSVC + Ninja +if (MSVC AND CMAKE_GENERATOR STREQUAL "Ninja") + add_compile_options( + /wd4711 # function 'function' selected for automatic inline expansion + /wd4464 # relative include path contains '..' + /wd4820 # 'identifier1': '4' bytes padding added after data member 'identifier2' + ) +endif() enable_testing() add_subdirectory(externals) |