Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone CMake Windows Phone问题_Windows Phone_Cmake - Fatal编程技术网

Windows phone CMake Windows Phone问题

Windows phone CMake Windows Phone问题,windows-phone,cmake,Windows Phone,Cmake,我有一个项目正在使用CMake作为构建系统,我需要将其移植到Windows Phone。遗憾的是,当我尝试运行cmake-G“Visual Studio 12 2013”失败,原因是 A Windows Phone component with CMake requires both the Windows Desktop SDK as well as the Windows Phone '8.0' SDK. Please make sure that you have both ins

我有一个项目正在使用CMake作为构建系统,我需要将其移植到Windows Phone。遗憾的是,当我尝试运行
cmake-G“Visual Studio 12 2013”
失败,原因是

 A Windows Phone component with CMake requires both the Windows Desktop SDK
 as well as the Windows Phone '8.0' SDK.  Please make sure that you have
 both installed
这真的很奇怪,因为我确实安装了这两个。添加
-DCMAKE\u SYSTEM\u NAME
-DCMAKE\u SYSTEM\u VERSION
没有帮助,结果仍然相同。即使我将系统版本指定为8.1,它仍然表示我缺少“8.0”SDK

我试着用谷歌搜索,但也没用。似乎有些人遇到了同样的问题,但出于某种原因,类似的问题都没有答案。我现在正在使用CMake 3.2.2,在3.2.0上试用,输出相同


现在完全迷失在这一点上,不知道该怎么办。有什么建议吗?

看起来它已经在CMake 3.4中修复了


CMake用于查找SDK的注册表中的位置在Windows 10中似乎已更改

如果您使用cmake gui打开项目,您是否看到可以设置的任何路径变量?@Antonio我已经解决了问题-是cmake本身。它只是在windows注册表中查找错误的目录,所以我重写了它,并将很快将路径发送给CMake团队。酷!如果你能对你自己的问题发布一个(简短的)答案,那就太好了。@Antonio我会尽快用叉子做一个补丁,然后贴上去!