我使用Clion 2016.1 Clion使用CMakeLists.txt和main.c创建项目:
CMakeLists.txt的内容是:
cmake_minimum_required(VERSION 3.4)
project(Fir)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror")
set(SOURCE_FILES main.c)
add_executable(Fir ${SOURCE_FILES})
main.c的内容是:
#include <stdio.h>
int main(void) {
printf("Hello, world");
getchar();
return 0;
}
但它给出了:
Configuration is still incorrect. Do you want to edit it again?
如何正确声明配置以运行项目