Home Forums Games202-高质量实时渲染 关于作业2开头编译的困惑 Reply To: 关于作业2开头编译的困惑

#8262 Score: 4
YunHsiao
Participant
19 pts

MSVC 对于代码中的中文字符支持有问题(应该是会吞换行符),需要启用 utf-8 编译选项:

在 prt/CMakeLists.txt 112 行添加:
target_compile_options(nori PUBLIC /utf-8) # MSVC unicode support

This post has received 4 votes up.
  • This reply was modified 3 years ago by YunHsiao.
  • This reply was modified 3 years ago by YunHsiao.