From b8ad3388ecde06c48825c2d338c043b217d11507 Mon Sep 17 00:00:00 2001 From: Sonu Lohani Date: Fri, 29 Jun 2018 09:34:41 +0530 Subject: [PATCH] Fixed compiler error in VS 2015 for debug mode https://github.com/nlohmann/json/issues/1114 --- test/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 8509c151..c0f40728 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -81,6 +81,9 @@ if(MSVC) # Disable warning C4566: character represented by universal-character-name '\uFF01' cannot be represented in the current code page (1252) # Disable warning C4996: 'nlohmann::basic_json::operator <<': was declared deprecated set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4389 /wd4309 /wd4566 /wd4996") + + # https://github.com/nlohmann/json/issues/1114 + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj") endif() #############################################################################