summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 99476c55f..a5357335f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,15 +118,15 @@ message(STATUS "Target architecture: ${ARCHITECTURE}")
118# Configure C++ standard 118# Configure C++ standard
119# =========================== 119# ===========================
120 120
121# boost asio's concept usage doesn't play nicely with some compilers yet.
122add_definitions(-DBOOST_ASIO_DISABLE_CONCEPTS)
121if (MSVC) 123if (MSVC)
122 add_compile_options(/std:c++latest) 124 add_compile_options(/std:c++latest)
123 125
124 # cubeb and boost still make use of deprecated result_of. 126 # cubeb and boost still make use of deprecated result_of.
125 add_definitions(-D_HAS_DEPRECATED_RESULT_OF) 127 add_definitions(-D_HAS_DEPRECATED_RESULT_OF)
126 # boost asio's concept usage doesn't play nicely with MSVC yet.
127 add_definitions(-DBOOST_ASIO_DISABLE_CONCEPTS)
128else() 128else()
129 set(CMAKE_CXX_STANDARD 17) 129 set(CMAKE_CXX_STANDARD 20)
130 set(CMAKE_CXX_STANDARD_REQUIRED ON) 130 set(CMAKE_CXX_STANDARD_REQUIRED ON)
131endif() 131endif()
132 132