生成缓存时CMake appcrash [英] CMake appcrash while generating cache

查看:97
本文介绍了生成缓存时CMake appcrash的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!当CMake尝试生成缓存时,我总是得到APPCRASH。发生了什么事?


项目非常简单,可以测试。



CMakeLists.txt

 cmake_minimum_required(VERSION 3.6)

project(Eldritch Horror)

set (SOURCES src / main.cc)

add_executable(eldritch $ {SOURCES})

main.cc

 #include< iostream> 

int main(int argc,char * argv []){
return 0;
}




已安装的组件



  • Visual Studio核心编辑器
  • 静态分析工具
  • Visual Studio C ++核心功能
  • VC ++ 2017 v141工具集(x86,x64)
  • .NET Framework 4.6.1 SDK
  • .NET Framework 4.6.1目标包
  • 用于CMake的Visual C ++工具
  • C ++ / CLI支持

解决方案

嗨  Bledson,


欢迎来到MSDN论坛。


我在我身边测试,一切都好。请不要在项目名称中使用空格并试一试。此外,您可以在此处询问有关CMake的问题:
https://cmake.org/



< p style ="line-height:106%">祝你好运,


Joyce


Hi! I'm always getting APPCRASH when CMake tries to generate the cache. What's happening?

The project is as simple as could be to test.

CMakeLists.txt

cmake_minimum_required(VERSION 3.6)

project(Eldritch Horror)

set(SOURCES src/main.cc)

add_executable(eldritch ${SOURCES})

main.cc

#include <iostream>

int main(int argc, char* argv[]) {
  return 0;
}


Installed components:

  • Visual Studio core editor
  • Static analysis tools
  • Visual Studio C++ core features
  • VC++ 2017 v141 toolset (x86,x64)
  • .NET Framework 4.6.1 SDK
  • .NET Framework 4.6.1 targeting pack
  • Visual C++ tools for CMake
  • C++/CLI support

解决方案

Hi Bledson,

Welcome to MSDN forum.

I test it on my side, everything is ok. Please do not use spaces in the name of project and have a try. Besides, you could ask questions about CMake in here: https://cmake.org/

Best regards,

Joyce


这篇关于生成缓存时CMake appcrash的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆