如何使用CMake为LLVM生成64位Visual Studio项目? [英] How to generate 64 bit Visual Studio project for LLVM using CMake?
问题描述
我已经下载了LLVM源存储库格式 http://releases.llvm.org/download.html .
I have downloaded LLVM source repository form http://releases.llvm.org/download.html.
现在,当我在源目录中运行CMAKE时,它正在生成32位Visual Studio项目,但我想生成64位Visual Studio项目.如果有人已经尝试过,请帮助.
Now when I am running CMAKE in the source directory it is generating 32bit Visual Studio Projects but I want to generate 64 bit visual studio projects. If someone has already tried please help.
我浏览了文档 https://llvm.org/docs/GettingStartedVS.html并且肯定如前所述-Thost=x64
选项不起作用.
I have gone through the document https://llvm.org/docs/GettingStartedVS.html and certainly as mentioned -Thost=x64
option is not working.
推荐答案
您需要使用选项-G
选择Visual Studio 15 2017 Win64
生成器.
You need to choose the Visual Studio 15 2017 Win64
generator using the option -G
.
这篇关于如何使用CMake为LLVM生成64位Visual Studio项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!