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