72e0dc58d3
Calling `project()` or `enable_language()` from a toolchain file will infinitely recurse since those commands load the toolchain file. Diagnose and reject this case with an error message instead of crashing when the stack eventually overflows.
6 lines
274 B
Plaintext
6 lines
274 B
Plaintext
^CMake Error at CallProject-toolchain.cmake:[0-9]+ \(project\):
|
|
Language 'NONE' is currently being enabled. Recursive call not allowed.
|
|
Call Stack \(most recent call first\):
|
|
.*/Modules/CMakeDetermineSystem.cmake:[0-9]+ \(include\)
|
|
CMakeLists.txt:[0-9]+ \(project\)$
|