cmake/Modules/FetchContent
Craig Scott c15674a9cb
FetchContent: Reject CMAKE_TOOLCHAIN_FILE env var in sub-build
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
2023-02-24 17:17:36 +11:00
..
CMakeLists.cmake.in FetchContent: Reject CMAKE_TOOLCHAIN_FILE env var in sub-build 2023-02-24 17:17:36 +11:00
package-config-version.cmake.in FetchContent: Ignore EXACT for redirected find_package() calls 2022-09-11 18:36:31 +10:00
package-config.cmake.in Packages: Integrate FetchContent and find_package() 2022-05-03 16:48:11 +10:00