I am new to the cmake. I wrote a simple cmake file and ran it in the cmake GUI. But it is displaying as follows
Error in configuration files. Project Files may be invalid.
and then displaying
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!
My CmakeList.txt has following :
cmake_minimum_required (VERSION 2.6)
project (Tutorial)
add_executable (Tutorial Tutorial.c)
Please help me.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…