title: CMake ignores toolchain file. How do get debug/error output?
body: <p>I'm currently trying to use CMake for cross-compiling. However, CMake seems to ignore the toolchain specified by</p>
  
  <pre><code>cmake -DCMAKE_TOOLCHAIN_FILE=my-toolchain.cmake .
  </code></pre>
  
  <p>or</p>
  
  <pre><code>cmake . -DCMAKE_TOOLCHAIN_FILE=my-toolchain.cmake
  </code></pre>
  
  <p>If I omit the CMAKE_TOOLCHAIN_FILE option, the exact same Makefile is generated. Furthermore, if I deliberately give a wrong filename or insert syntax and path errors in the toolchain file, CMake doesn't bother to complain either.</p>
  
  <p>Is there a way to get more error/debug output during a CMake run? The only option I could find is "--debug-output", which isn't very helpful in my case.</p>