Skip to content
  • Craig Scott's avatar
    FetchContent: Reject CMAKE_TOOLCHAIN_FILE env var in sub-build · c15674a9
    Craig Scott authored
    The sub-build should never try to use a toolchain file. The toolchain file
    may itself be getting downloaded by FetchContent. If the
    CMAKE_TOOLCHAIN_FILE environment variable is set, CMake uses it to
    initialize the CMake variable of the same name. We need to explicitly
    clear them before the first project call of the sub-build.
    
    Fixes: #24535
    c15674a9