From a9683878c03000fd05376a24c86ee0ae92251e13 Mon Sep 17 00:00:00 2001 From: Dominick Schroer Date: Thu, 11 Jan 2024 21:25:15 -0700 Subject: [PATCH] fix: emscripten unable to find OCCT --- crates/opencascade-sys/OCCT/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/opencascade-sys/OCCT/CMakeLists.txt b/crates/opencascade-sys/OCCT/CMakeLists.txt index a8fb52b8..417c58be 100644 --- a/crates/opencascade-sys/OCCT/CMakeLists.txt +++ b/crates/opencascade-sys/OCCT/CMakeLists.txt @@ -1,5 +1,9 @@ cmake_minimum_required (VERSION 3.1 FATAL_ERROR) project (OpenCASCADEPackageConfig) + +# Fix for WASM: https://github.com/emscripten-core/emscripten/issues/19243 +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE "BOTH" CACHE PATH "") + find_package (OpenCASCADE REQUIRED) file (WRITE ${CMAKE_BINARY_DIR}/occ_info.txt