Explorar o código

CMakeLists: Disable concepts in boost asio

Lioncash %!s(int64=6) %!d(string=hai) anos
pai
achega
539675b21a
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      CMakeLists.txt

+ 2 - 0
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)