[CMAKE] Define _SBCS when using VS generator

CORE-17423
This commit is contained in:
Jérôme Gardou 2021-02-03 18:35:12 +01:00 committed by Jérôme Gardou
parent e7f08b3e30
commit 5d1ecc7575

View file

@ -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()