From e94085e2167e33b6b18474da24ff18f46bc56976 Mon Sep 17 00:00:00 2001 From: Máté Ferenc Nagy-Egri Date: Mon, 28 Oct 2024 15:34:12 +0100 Subject: scripts: Fix user self-hosting dependency in update_deps.py The documentation states that users can override where to take a dependency from via variables like VULKAN_HEADERS_INSTALL_DIR, however the helper.cmake written by the scripts/CMakeLists.txt FORCE updates the cache variable to the location inside known_good.json, practically overwriting the user-provided path given on the CLI using -D, also going into the cache. --- scripts/update_deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/update_deps.py b/scripts/update_deps.py index 24d125a9..47810a00 100755 --- a/scripts/update_deps.py +++ b/scripts/update_deps.py @@ -622,7 +622,7 @@ def CreateHelper(args, repos, filename): if repo.api is not None and repo.api != args.api: continue if install_names and repo.name in install_names and repo.on_build_platform: - helper_file.write('set({var} "{dir}" CACHE STRING "" FORCE)\n' + helper_file.write('set({var} "{dir}" CACHE STRING "")\n' .format( var=install_names[repo.name], dir=escape(repo.install_dir))) -- cgit v1.2.3