title: How can I "debug" the CMake executing process
body: <p>I want to know all the details of the CMake process such as</p>
  
  <ul>
  <li>Which function it calls</li>
  <li>Which path it searchs</li>
  <li>Which caches it stores</li>
  </ul>
  
  <p>I have tried <code>--debug-output</code>, and cmake-gui, but it's just not very detailed.</p>
  
  <p>I don't like something that runs automatically without a report. It messes things up. For example, I have spent 2 hours to find out that CMake use Windows Registry "quietly" to get a path for "find_package()". This is really annoying.(Yes, if I had read EVERY word in the verbose document, I should have known it earlier)</p>
  
  <p>Maybe the only way left for me is to look the source code of CMake? Actually, I have read CMake source code to fully understand the wield syntax of set()(<a href="https://cmake.org/Bug/print_bug_page.php?bug_id=2770" rel="nofollow">Lists in CMake are just strings with semicolons delimiters</a>)</p>