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
+1 -1
View File
@@ -377,7 +377,7 @@ def main() -> None:
install_occt(vs_cfg_vars, ARGS.build_type, build_deps_cache, ARGS.build_cfg, MSBUILD_MULTIPROC)
pythonhome = install_python(vs_cfg_vars, ARGS.install_python, ARGS.python_version, build_deps_cache, nuget_exe)
install_swig(vs_cfg_vars, ARGS.build_type, build_deps_cache, MSBUILD_MULTIPROC)
install_cgal(vs_cfg_vars, ARGS.build_type, ARGS.build_cfg, MSBUILD_MULTIPROC)
install_cgal(vs_cfg_vars, ARGS.build_type, build_deps_cache, ARGS.build_cfg, MSBUILD_MULTIPROC)
install_eigen(vs_cfg_vars)
install_zstd(vs_cfg_vars, ARGS.build_type, ARGS.build_cfg, MSBUILD_MULTIPROC)
install_rocksdb(vs_cfg_vars, ARGS.build_type, ARGS.build_cfg, MSBUILD_MULTIPROC)
+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
+1 -1
View File
@@ -68,7 +68,7 @@ class Deps:
# We don't install Eigen currently,
# so there's no Eigen3config.cmake and therefore we provide path explicitly.
"eigen": Dep("EIGEN_DIR", Path("Eigen"), cmake_prefix=False, pass_as_cmake_arg=True),
"cgal": Dep("CGAL_INSTALL_DIR", Path("cgal")),
"cgal": Dep("CGAL_INSTALL_DIR", None),
"gmp": Dep("GMP_INSTALL_DIR", Path("mpir")),
"mpfr": Dep("MPFR_INSTALL_DIR", Path("mpfr")),
# CCACHE_INSTALL_DIR is only set when ccache wasn't found on PATH.