title: CLion debugger not working when using gcc
body: <p>Im trying to configure CLion so that I can use openMP. When using the default settings on my Mac, the compiler is clang. Default Apple clang does not support openMP.</p>
  
  <p>When I change my compiler to GCC, the debugger will not stop at breakpoints. The program just runs as it would when executing the compiled file.</p>
  
  <p>The CMakeLists.txt file below works perfectly with CLion debugger. When I uncomment out the compiler flags, the debugger ignores the breakpoints. </p>
  
  <pre><code>cmake_minimum_required(VERSION 3.8)
  project(CLionTest)
  
  set(CMAKE_C_STANDARD 99)
  #set(CMAKE_C_COMPILER /usr/local/bin/gcc-7)
  #set(CMAKE_C_FLAGS -fopenmp)
  #set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG")
  
  set(MAIN main.c)
  add_executable(CLionTest ${MAIN})
  
  add_custom_target(CLionTestMake COMMAND make all WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
  </code></pre>
  
  <p>How do I fix this?</p>
  
  <p>Toolchain settings: 
  CMake executable: Bundeled CMake 3.8.2
  Debugger: Bundled LLDB 3.9.0</p>
  
  <p>main.c:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;unistd.h&gt;
  #ifdef _OPENMP
    #include &lt;omp.h&gt;
  #endif
  
  int main() {
      printf("Hello, World!\n");
  
      #pragma omp parallel
      {
          #ifdef _OPENMP
            int size = omp_get_num_threads();
            int rank = omp_get_thread_num();
          #else
            int rank = 0;
            int size = 1;
          #endif
          printf("%d/%d\n", rank, size);
      };
  
      return 0;
  }
  </code></pre>