编译简单的c文件时出现cmake错误

时间:2011-06-24 20:11:14

标签: c cmake

  

可能重复:
  cmake error:Error in configuration files. Project Files may be invalid.

CMakeFileList.txt包含以下内容:

cmake_minimum_required (VERSION 2.6)
project (Tutorial)
add_executable(Tutorial Tutorial.c)

当我点击CMake Gui中的配置按钮时,它说配置文件中的错误。项目文件可能无效。

CMake Error: Error in cmake code at
C:/home/temp/Tutorial/CMakeLists.txt:1:
Parse error.  Expected a newline, got identifier with text "project".
Configuring incomplete, errors occurred!

由于

0 个答案:

没有答案