title: "CMAKE_CXX_COMPILER broken" while compiling with CMake
body: <p>I'm trying to compile a Git project, and I'm facing some problems with CMake. Initially, it didn't find the C++ compiler and prompted an error:</p>
  
  <pre><code>cmake ..
  </code></pre>
  
  <blockquote>
    <p>No CMAKE_CXX_COMPILER could be found.</p>
    
    <p>Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.</p>
  </blockquote>
  
  <p>So, I did:</p>
  
  <pre><code>CXX="gcc" cmake ..
  </code></pre>
  
  <p>But another error was prompted:</p>
  
  <blockquote>
    <p>-- The CXX compiler identification is unknown<br>
    -- Check for working CXX compiler: /usr/bin/gcc<br>
    -- Check for working CXX compiler: /usr/bin/gcc -- broken<br>
    CMake Error at /usr/share/cmake-3.0/Modules/CMakeTestCXXCompiler.cmake:54 (message):<br>
        The C++ compiler "/usr/bin/gcc" is not able to compile a simple test program.</p>
  </blockquote>
  
  <p>How can I solve this error and compile the project?</p>