<div dir="ltr"><div>If a script recursively calls itself (ir indirectly causes a infinite recursion of includes) cmake silently exits, and does not tell why.</div><div><br></div><div>I finally managed to get cmake --trace-expand --debug-output .. to show some useful information.</div><div>--debug-output with --build causes cmake to try to run in configure mode instead of building... </div><div><br></div><div>----- CMakeLists.txt ---------</div><div><div>cmake_minimum_required(VERSION 3.6)</div><div>include( brokenScript )</div></div><div>--------------------<br></div><div><br></div><div>----- brokenScript ---------</div><div><div>include( brokenScript )</div></div><div>-------------------</div><div><br></div><div>(Yes, this shouldn't be done in the first place; but I ended up generating a script over another script of the same name that was expecting originally to be built into a separate directory)</div><div><br></div><div>having the above two files, and making a build directory and from the build directory doing 'cmake ..' does compiler detection then exits with an error code.  Cmake-gui (on windows) trying to do a generate crashes with an exception.</div></div>