mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-11-23 03:24:07 +00:00
CMakeLists: Enable usage of C++20 on Linux
This also fixes building on Linux with C++20, so we can enable it across the board for all OSes that we officially support.
This commit is contained in:
parent
b2305dcee0
commit
07632ad825
1 changed files with 3 additions and 3 deletions
|
@ -118,15 +118,15 @@ message(STATUS "Target architecture: ${ARCHITECTURE}")
|
||||||
# Configure C++ standard
|
# Configure C++ standard
|
||||||
# ===========================
|
# ===========================
|
||||||
|
|
||||||
|
# boost asio's concept usage doesn't play nicely with some compilers yet.
|
||||||
|
add_definitions(-DBOOST_ASIO_DISABLE_CONCEPTS)
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_compile_options(/std:c++latest)
|
add_compile_options(/std:c++latest)
|
||||||
|
|
||||||
# cubeb and boost still make use of deprecated result_of.
|
# cubeb and boost still make use of deprecated result_of.
|
||||||
add_definitions(-D_HAS_DEPRECATED_RESULT_OF)
|
add_definitions(-D_HAS_DEPRECATED_RESULT_OF)
|
||||||
# boost asio's concept usage doesn't play nicely with MSVC yet.
|
|
||||||
add_definitions(-DBOOST_ASIO_DISABLE_CONCEPTS)
|
|
||||||
else()
|
else()
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue