【发布时间】:2016-10-21 13:43:17
【问题描述】:
我正在尝试为 Windows 构建 Vulkan 工具。对于我使用的构建:
Windows 7 x64
Visual Studio 2012
cmake 3.6.1
python 3.5
我在 Windows bat 文件中的命令提示符中设置的那个参数,在 CMake 工作之后,我在 CMakeError.log 中出现以下错误:
LINK : fatal error LNK1104: cannot open file 'MSVCRTD.lib' .
当我打开创建的 CompilerIdCXX.vcxproj 并尝试构建它时,如果我将路径添加到它正常构建的所需库,我会遇到类似的问题。在 CMake 文件中,我尝试使用命令 link_directories 添加库的路径,重新运行 cmake 后,我遇到了与以前类似的问题。 顺便说一句,添加消息系统后,我看到 cmake 在命令项目上停止。
【问题讨论】:
-
您试图修改
CMakeLists.txt文件,但我们只能猜测您是如何做到的。提供代码。
标签: python windows visual-studio-2012 cmake vulkan