diff options
| author | Léo Lam <leo@leolam.fr> | 2021-03-04 12:12:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-04 12:12:06 +0100 |
| commit | 9c6c77351fedb60d44bb09e241eb33a9823eb3d4 (patch) | |
| tree | 48067028f6220e891e7e7a5d827057386ba0fe34 /Source/Core | |
| parent | 00db622d5048eaffe1cc5af85f5ac821f44bcbb5 (diff) | |
| parent | 0cb71d3f47bc1e87048a91e7a421bb0296fa3536 (diff) | |
Merge pull request #9556 from JosJuice/cmake-msvc-latest
CMake: Build with -std:c++latest for MSVC
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 2cb3397e33..ad248b320d 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -347,6 +347,13 @@ if (WIN32) ) endif() +if (MSVC) + # Disable some warnings + + # 5054: operator '+': deprecated between enumerations of different types (in Qt headers) + target_compile_options(dolphin-emu PRIVATE /wd5054) +endif() + if(WIN32) target_sources(dolphin-emu PRIVATE DolphinQt.manifest DolphinQt.rc) @@ -356,8 +363,6 @@ if(WIN32) WIN32_EXECUTABLE TRUE ) - target_compile_options(dolphin-emu PRIVATE "-D_SILENCE_CXX17_RESULT_OF_DEPRECATION_WARNING") - # Copy Sys dir add_custom_command(TARGET dolphin-emu POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR}/Data/Sys" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Sys" |
