title: Clion. How to start C project?
body: <p>I use Clion 2016.1
  Clion creates project with CMakeLists.txt and main.c: </p>
  
  <p>The content of CMakeLists.txt is:</p>
  
  <pre><code>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})
  </code></pre>
  
  <p>The content of main.c is:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) {
      printf("Hello, world");
      getchar();
      return 0;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/zHrAZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zHrAZ.png" alt="enter image description here"></a></p>
  
  <p>But it gives:</p>
  
  <pre><code>Configuration is still incorrect. Do you want to edit it again?
  </code></pre>
  
  <p>How to properly declare configuration to run the project</p>