From 7c8cabaa420dd9ce9120c9a2ff14717d7749ff34 Mon Sep 17 00:00:00 2001 From: kornes <28986062+kornes@users.noreply.github.com> Date: Thu, 5 Oct 2023 10:11:28 +0000 Subject: [PATCH] Fix websocketpp depending on boost::random (#4869) Co-authored-by: nerix --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index be3d3336..936384f1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1007,6 +1007,8 @@ if (MSVC) /wd4505 /wd4100 /wd4267 + # Enable updated '__cplusplus' macro - workaround for CMake#18837 + /Zc:__cplusplus ) # Disable min/max macros from Windows.h target_compile_definitions(${LIBRARY_PROJECT} PUBLIC NOMINMAX)