Skip to content

Commit

Permalink
fix: emscripten unable to find OCCT (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
DSchroer authored Jan 14, 2024
1 parent 22f5d54 commit 4ab46f0
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 4ab46f0

Please sign in to comment.