In the emscripten / wasm case we cannot call the default find_package(NumPy ${NUMPY_REQUIRED_VERSION} REQUIRED) since this tries to call a non-existing python executable for the emscripten-wasm32 platform (we only have a python library for that platform).
Therefore we pass NUMPY_INCLUDE_DIRS explicitly when building for wasm.
In the emscripten / wasm case we cannot call the default
find_package(NumPy ${NUMPY_REQUIRED_VERSION} REQUIRED)
since this tries to call a non-existing python executable for theemscripten-wasm32
platform (we only have a python library for that platform). Therefore we passNUMPY_INCLUDE_DIRS
explicitly when building for wasm.