From 5d1ecc7575e899b1a35466fc130e4b104fb8e755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Wed, 3 Feb 2021 18:35:12 +0100 Subject: [PATCH] [CMAKE] Define _SBCS when using VS generator CORE-17423 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fcd92b5512a..57fe94a8a5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,9 +127,10 @@ else() # Print build type message("-- Build Type: ${CMAKE_BUILD_TYPE}") - # Always add /MT in VS CMAKE_GENERATOR + # Always add /MT in VS CMAKE_GENERATOR and define _SBCS otherwise VS thinks it's a multi-byte or whatever project if (MSVC_IDE) add_compile_options("/MT") + add_compile_definitions(_SBCS) endif()