简体   繁体   English

UWP项目的Visual Studio 2017 CMake问题

[英]Visual Studio 2017 CMake issues with UWP projects

I am currently having issues with Visual Studios 2017 enterprise edition not being able to generate / compile code for UWP projects using CMake, 我目前在Visual Studios 2017企业版中遇到问题,无法使用CMake为UWP项目生成/编译代码,

the Error: - A Windows Store component with CMake requires both the Windows Desktop SDK as well as the Windows Store '10.0' SDK. 错误:-带有CMake的Windows应用商店组件同时需要Windows桌面SDK和Windows应用商店“ 10.0” SDK。 Please make sure that you have both installed 请确保您已经安装了

I have tracked down the issue over a period of time searching it seems that the version of CMake visual studio is using cant properly find Windows 10 SDK or Windows Desktop SDK, i tried to exchange the version of cmake VS2017 is using for a newer version eg ( I tried both 3.8 and 3.9 ) both worked to a certain extent until post a parse error in the output for cmake target info extraction. 我在一段时间内一直在寻找问题,似乎似乎无法正确找到Windows 10 SDK或Windows Desktop SDK,这是因为CMake Visual Studio版本正在使用中,我试图将VS2017使用的cmake版本换成较新的版本,例如(我尝试过3.8和3.9)都在一定程度上起作用,直到在输出中发布解析错误以进行cmake目标信息提取为止。

i found the reason for that is because VS2017 is using a custom version of CMake - 3.7.20170106-gd3236-dirty-MSVC_2 我发现原因是因为VS2017使用的是自定义版本的CMake-3.7.20170106-gd3236-dirty-MSVC_2

does anyone have a work around to get UWP projects to work with VS 2017 CMake. 有谁能使UWP项目与VS 2017 CMake一起工作?

It seemed that it's a known issue. 看来这是一个已知问题。

The 3.7.2 version of CMake bundled with Visual Studio 2017 (latest update) cannot on its own find the Visual Studio 2017 build tools. 与Visual Studio 2017捆绑在一起的CMake的3.7.2版本(最新更新)无法单独找到Visual Studio 2017生成工具。 Using CMake 3.8.1 (current CMake release), the tools can be found no problem. 使用CMake 3.8.1(当前CMake版本),可以发现这些工具没有问题。

You could see more detailed information from here: Visual Studio 2017 CMake Build Tools Bug 您可以从此处查看更多详细信息: Visual Studio 2017 CMake Build Tools错误

So, please try to use the CMake 3.8 因此,请尝试使用CMake 3.8

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM