Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2ee6c6

Browse files
committed
Fix WASM build by reverting CGAL handling to explicit paths from commit 3ec7b71
1 parent 6940a05 commit e2ee6c6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nix/build-all.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,14 @@ def get_cmake_args_prefix_path(additional_paths: "Sequence[str]" = ()) -> "list[
12521252
cmake_args_prefix_path.append(f"{DEPS_DIR}/install/cgal-{CGAL_VERSION}")
12531253
cmake_args_prefix_path.append(f"{DEPS_DIR}/install/gmp-{GMP_VERSION}")
12541254
cmake_args_prefix_path.append(f"{DEPS_DIR}/install/mpfr-{MPFR_VERSION}")
1255+
if "wasm" in flags:
1256+
cmake_args.extend([
1257+
f"-DCGAL_INCLUDE_DIR={DEPS_DIR}/install/cgal-{CGAL_VERSION}/include",
1258+
f"-DGMP_INCLUDE_DIR={DEPS_DIR}/install/gmp-{GMP_VERSION}/include",
1259+
f"-DGMP_LIBRARY_DIR={DEPS_DIR}/install/gmp-{GMP_VERSION}/lib",
1260+
f"-DMPFR_INCLUDE_DIR={DEPS_DIR}/install/mpfr-{MPFR_VERSION}/include",
1261+
f"-DMPFR_LIBRARY_DIR={DEPS_DIR}/install/mpfr-{MPFR_VERSION}/lib",
1262+
])
12551263

12561264
if "occ" in targets and USE_OCCT:
12571265
cmake_args_prefix_path.append(f"{DEPS_DIR}/install/occt-{OCCT_VERSION}")

0 commit comments

Comments
 (0)