可能重复:
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!
由于