win: key the CGAL install dir on its version

6dbc4e28d raised the minimum CGAL to 5.4. The Windows dependency cache in
build-outputs is keyed on the install directory name and only ever adds to
it, so the unversioned `cgal` directory kept serving CGAL 5.2.3 and the
Windows build has failed at configure since:

  Could not find a configuration file for package "CGAL" that is compatible
  ... cgal/lib/cmake/CGAL/CGALConfig.cmake, version: 5.2.3

Name the directory `cgal-5.5.5`, as the TODO already suggested, and record
it in the deps cache like the other installers do.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Dion Moult
2026-09-17 16:27:27 +10:00
parent e389fb6145
commit 3c81e6e2e7
3 changed files with 9 additions and 4 deletions
+7 -2
View File
@@ -1036,6 +1036,7 @@ def install_swig(
def install_cgal(
vs_cfg_vars: VsCfgResult,
build_type: BuildType,
build_deps_cache: BuildDepsCache,
build_cfg: BuildCfg,
msbuild_multiproc: tuple[str, ...],
) -> None:
@@ -1043,11 +1044,15 @@ def install_cgal(
install_dir = vs_cfg_vars.install_dir
# TODO: bump to v5.6.3 to match nix/build-all.py.
# TODO: add CGAL_VERSION to the install path during the next version bump.
CGAL_VERSION = "5.5.5"
DEPENDENCY_NAME = "cgal"
dependency_dir = deps_dir / "cgal"
dependency_install_dir = install_dir / "cgal"
# The version is part of the install path: the CI dependency cache is keyed on the
# directory name and only ever adds to it, so the unversioned `cgal` directory kept
# serving CGAL 5.2.3 after the minimum was raised to 5.4.
dependency_install_dir = install_dir / f"cgal-{CGAL_VERSION}"
build_deps_cache.add_entry("CGAL_INSTALL_DIR", str(dependency_install_dir))
if is_already_installed(dependency_install_dir):
return