From 0e39abf88e5f5d561b6154e5879d991364f29291 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 8 Sep 2026 15:35:51 +0500 Subject: [PATCH] build-deps/occt: drop `-new-layout` suffix on next version update automatically --- win/build-deps.cmd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/win/build-deps.cmd b/win/build-deps.cmd index 5595cd1536..751bf2aa8a 100644 --- a/win/build-deps.cmd +++ b/win/build-deps.cmd @@ -477,9 +477,11 @@ call :MarkInstallation SET OCCT_VER=V%OCCT_VERSION:.=_% set DEPENDENCY_NAME=OpenCASCADE -:: `new-layout` suffix can be removed on the next OCCT version update -:: it's needed to separate legacy layout installation from the new one. -set OCCT_DEPENDENCY_INSTALL_NAME=opencascade-%OCCT_VERSION%-new-layout +:: TODO: `new-layout` suffix can be dropped on the next OCCT version update, it's only needed +:: to separate the legacy layout installation (used by version 7.8.1) from the new one. +set OCCT_NEW_LAYOUT_SUFFIX= +IF "%OCCT_VERSION%"=="7.8.1" set OCCT_NEW_LAYOUT_SUFFIX=-new-layout +set OCCT_DEPENDENCY_INSTALL_NAME=opencascade-%OCCT_VERSION%%OCCT_NEW_LAYOUT_SUFFIX% set DEPENDENCY_INSTALL_NAME=%OCCT_DEPENDENCY_INSTALL_NAME% set DEPENDENCY_INSTALL_DIR=%INSTALL_DIR%\%DEPENDENCY_INSTALL_NAME% set NEXT_DEPENDENCY_LABEL=Python