diff --git a/src/actions/vstudio/vs200x_vcproj.lua b/src/actions/vstudio/vs200x_vcproj.lua index c0af28db..273fbbf0 100644 --- a/src/actions/vstudio/vs200x_vcproj.lua +++ b/src/actions/vstudio/vs200x_vcproj.lua @@ -189,7 +189,7 @@ _p(3, 'UseOfMFC="%d"', iif(cfg.flags.StaticRuntime, 1, 2)) end - _p(3,'CharacterSet="%s"', iif(cfg.flags.Unicode, 1, 2)) + vc200x.ConfigurationCharacterSet(cfg) if cfg.flags.Managed then _p(3,'ManagedExtensions="1"') @@ -198,6 +198,11 @@ _p(3,'>') end + function vc200x.ConfigurationCharacterSet(cfg) + _p(3,'CharacterSet="%s"', iif(cfg.flags.Unicode, 1, 2)) + end + + -- -- Write out an empty configuration element for a build configuration/