79144934

Date: 2024-10-31 13:38:23
Score: 1.5
Natty:
Report link

I've been informed that:

CharacterSet is set as follows:

If the project adds a _UNICODE preprocessor definition, the CharacterSet is Unicode. If the project adds a _SBCS preprocessor definition, the CharacterSet is NotSet. Otherwise, the CharacterSet is MultiByte.

so

target_compile_definitions(example PRIVATE _SBCS)

should do the job.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: David Partridge