Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

CMakeLists: Disable concepts in boost asio

Lioncashc21397b7a692
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 12c0a42847..174ed1c587 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -123,6 +123,8 @@ if (MSVC)
# cubeb and boost still make use of deprecated result_of.
add_definitions(-D_HAS_DEPRECATED_RESULT_OF)
+ # boost asio's concept usage doesn't play nicely with MSVC yet.
+ add_definitions(-DASIO_DISABLE_CONCEPTS)
else()
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)