From a1f20ec7bb9df43e7303d7467adcb35684618e5c Mon Sep 17 00:00:00 2001 From: myoualid Date: Sun, 28 Sep 2025 20:20:43 +0100 Subject: [PATCH] add explicit OCCT paths for WASM builds --- nix/build-all.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/build-all.py b/nix/build-all.py index 0ec1cb6c15..cd11958c3b 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -1263,6 +1263,11 @@ if "cgal" in targets: if "occ" in targets and USE_OCCT: cmake_args_prefix_path.append(f"{DEPS_DIR}/install/occt-{OCCT_VERSION}") + if "wasm" in flags: + cmake_args.extend([ + f"-DOCC_INCLUDE_DIR={DEPS_DIR}/install/occt-{OCCT_VERSION}/include/opencascade", + f"-DOCC_LIBRARY_DIR={DEPS_DIR}/install/occt-{OCCT_VERSION}/lib", + ]) elif "occ" in targets: # We don't support find_package for OCE.