title: Difference between CMAKE_PROJECT_NAME and PROJECT_NAME?
body: <p>What is the difference between CMAKE_PROJECT_NAME and PROJECT_NAME?</p>
  <p>From the documentation:</p>
  <p><a href="https://cmake.org/cmake/help/v3.6/variable/CMAKE_PROJECT_NAME.html" rel="noreferrer">CMAKE_PROJECT_NAME</a></p>
  <blockquote>
  <p>The name of the current project.</p>
  <p>This specifies name of the current project from the closest inherited project() command.</p>
  </blockquote>
  <p><a href="https://cmake.org/cmake/help/v3.6/variable/PROJECT_NAME.html" rel="noreferrer">PROJECT_NAME</a></p>
  <blockquote>
  <p>Name of the project given to the project command.</p>
  <p>This is the name given to the most recent project() command.</p>
  </blockquote>
  <p>I don't understand the difference.</p>
  <p>When should I use <code>CMAKE_PROJECT_NAME</code>? When should I use <code>PROJECT_NAME</code>?</p>