diff --git a/Build.cmake b/Build.cmake index c85d3d2..507ccec 100644 --- a/Build.cmake +++ b/Build.cmake @@ -54,11 +54,12 @@ ELSEIF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") set(PLATFORM_LINK_LIBRIES rt) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -rdynamic -Wunused -std=c++11 -pthread -lrt -D_GLIBCXX_USE_NANOSLEEP -D_GLIBCXX_USE_SCHED_YIELD") ENDIF() +ELSEIF(MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8") # source code already in utf-8, force it for compilers in non-utf8_windows_locale ENDIF() IF (MSVC OR MINGW) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /utf-8") # source code already in utf-8, force it for compilers in non-utf8_windows_locale set(PLATFORM_LINK_LIBRIES dbghelp) # VC11 bug: http://code.google.com/p/googletest/issues/detail?id=408 # add_definition(-D_VARIADIC_MAX=10)