# HG changeset patch # User Sebastien Jodogne # Date 1406291395 -7200 # Node ID 303eb5e09a4bc6f40a22fb4beab87449f2d5e868 # Parent f25c7949773909b2d0735e3e3e36000863f74b6b pch diff -r f25c79497739 -r 303eb5e09a4b NEWS --- a/NEWS Fri Jul 25 14:08:10 2014 +0200 +++ b/NEWS Fri Jul 25 14:29:55 2014 +0200 @@ -9,6 +9,7 @@ * On-the-fly conversion of JSON to XML according to the HTTP Accept header * C-Echo SCU in the REST API * Lua scripts can do HTTP requests, and thus can call Web services +* Fix build of Google Log with Visual Studio >= 11.0 Plugins ------- diff -r f25c79497739 -r 303eb5e09a4b Resources/CMake/Compiler.cmake --- a/Resources/CMake/Compiler.cmake Fri Jul 25 14:08:10 2014 +0200 +++ b/Resources/CMake/Compiler.cmake Fri Jul 25 14:29:55 2014 +0200 @@ -28,6 +28,9 @@ string(REGEX REPLACE "/MDd" "/MTd" ${flag_var} "${${flag_var}}") endforeach(flag_var) + # Add /Zm256 compiler option to Visual Studio to fix PCH errors + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zm256") + add_definitions( -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_SECURE_NO_DEPRECATE=1