mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
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.
4 lines
99 B
CMake
4 lines
99 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(${RunCMake_TEST} NONE)
|
|
include(${RunCMake_TEST}.cmake)
|