summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar LC2020-07-12 12:25:10 -0400
committerGravatar GitHub2020-07-12 12:25:10 -0400
commited89bcc767a6c187d834b6b9bb6134190598fc53 (patch)
treeb17d4aaf8b4550d6433ff28a820046957b7a4172
parentMerge pull request #3385 from Morph1984/batch-install (diff)
parentCMakeLists: Make use of /std:c++latest on MSVC (diff)
downloadyuzu-ed89bcc767a6c187d834b6b9bb6134190598fc53.tar.gz
yuzu-ed89bcc767a6c187d834b6b9bb6134190598fc53.tar.xz
yuzu-ed89bcc767a6c187d834b6b9bb6134190598fc53.zip
Merge pull request #4290 from lioncash/latest
CMakeLists: Make use of /std:c++latest on MSVC
-rw-r--r--CMakeLists.txt11
-rw-r--r--src/yuzu/game_list.cpp4
2 files changed, 11 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 88ea04c08..12c0a4284 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,8 +118,15 @@ message(STATUS "Target architecture: ${ARCHITECTURE}")
118# Configure C++ standard 118# Configure C++ standard
119# =========================== 119# ===========================
120 120
121set(CMAKE_CXX_STANDARD 17) 121if (MSVC)
122set(CMAKE_CXX_STANDARD_REQUIRED ON) 122 add_compile_options(/std:c++latest)
123
124 # cubeb and boost still make use of deprecated result_of.
125 add_definitions(-D_HAS_DEPRECATED_RESULT_OF)
126else()
127 set(CMAKE_CXX_STANDARD 17)
128 set(CMAKE_CXX_STANDARD_REQUIRED ON)
129endif()
123 130
124# Output binaries to bin/ 131# Output binaries to bin/
125set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) 132set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp
index bfb600df0..ab7fc7a24 100644
--- a/src/yuzu/game_list.cpp
+++ b/src/yuzu/game_list.cpp
@@ -531,8 +531,8 @@ void GameList::AddPermDirPopup(QMenu& context_menu, QModelIndex selected) {
531 UISettings::GameDir& game_dir = 531 UISettings::GameDir& game_dir =
532 *selected.data(GameListDir::GameDirRole).value<UISettings::GameDir*>(); 532 *selected.data(GameListDir::GameDirRole).value<UISettings::GameDir*>();
533 533
534 QAction* move_up = context_menu.addAction(tr(u8"\U000025b2 Move Up")); 534 QAction* move_up = context_menu.addAction(tr("\u25B2 Move Up"));
535 QAction* move_down = context_menu.addAction(tr(u8"\U000025bc Move Down ")); 535 QAction* move_down = context_menu.addAction(tr("\u25bc Move Down"));
536 QAction* open_directory_location = context_menu.addAction(tr("Open Directory Location")); 536 QAction* open_directory_location = context_menu.addAction(tr("Open Directory Location"));
537 537
538 const int row = selected.row(); 538 const int row = selected.row();