如何使用MSVC2017和CMAKE定位Windows XP?
我想完成其他2个线程正在做的事情,但是使用最新的MSVC来支持定位Windows XP和CMake支持。
我一直遵循我如何生成一个带有cmake Windows XP的Visual Studio 2012项目?和 cmake如何为Visual Studio 2015项目指定“平台工具集”?,但是Cmake不断告诉我,它为Windows 10.foo配置了源代码.bar SDK版本无法正常工作。我尝试将hamfist v141_xp作为cmake_generator_toolset和cmake的-t参数,但最终都失败了。我该怎么做?如果可能的话,我可以在cmakesettings.json中在哪里指定?
AMD64支持的奖励积分,因为我想制作的目标系统是Windows XP X64。
对于它的价值,我尝试打开一个.sln文件,并确认可以作为平台工具集使用V141_XP。
I wanted to accomplish what other 2 threads are doing, but with latest MSVC to support targetting Windows XP and CMake support.
I keep following the advice given in How can I generate a Visual Studio 2012 project targeting Windows XP with CMake? and How does CMake specify "Platform Toolset" for a Visual Studio 2015 project? but CMake keeps telling me that it configured the source code for Windows 10.foo.bar SDK version which is not going to work. I tried hamfisting v141_xp into the project as CMAKE_GENERATOR_TOOLSET and -T parameter for cmake but it all ultimately fails. How can I accomplish this? And if possible, where can I specify this in CMakeSettings.json?
Bonus points for amd64 support, since the target system I want to make binaries for is Windows XP x64.
For what it's worth, I have tried to open a .sln file and I confirm that v141_xp is available as a platform toolset.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我自己想知道。来自X64工具控制台:
I figured it out on my own. From x64 tools console: