Skip to content

Commit

Permalink
fix: emscripten unable to find OCCT
Browse files Browse the repository at this point in the history
  • Loading branch information
DSchroer committed Jan 12, 2024
1 parent ccdd197 commit a968387
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/opencascade-sys/OCCT/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a968387

Please sign in to comment.