gpt4 book ai didi

unicode - 如何在 Windows 上设置 taglib 字符集以使用 unicode?

转载 作者:行者123 更新时间:2023-12-02 12:09:24 25 4
gpt4 key购买 nike

TagLib 使用 CMake 构建系统创建 Visual Studio 2010 解决方案和项目文件。

生成的项目的唯一问题是字符集设置为 MBCS,而我希望它是 Unicode。

有没有办法通过 CMake 设置此选项?

我目前正在使用它在 Windows 上的 VS2010 命令提示符下构建 taglib:

cmake -DWITH_MP4=ON -DENABLE_STATIC=ON .

最佳答案

除了 Andrey 的答案,您可以通过以下方式在 CMakeLists.txt 文件中指定字符集

target_compile_definitions (TargetName PRIVATE -D_UNICODE -DUNICODE
<additional defines>)

关于unicode - 如何在 Windows 上设置 taglib 字符集以使用 unicode?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7550388/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com