From 4d44776a7b8fe4ff0759467c3e1325ef9959de27 Mon Sep 17 00:00:00 2001 From: DerThorsten Date: Mon, 15 Jan 2024 09:22:53 +0100 Subject: [PATCH 1/2] wasm fixes --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1bd077..fd03b3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,9 +55,12 @@ else() message(STATUS "Found pybind11: ${pybind11_INCLUDE_DIRS}/pybind11") endif() -find_package(NumPy REQUIRED) -message(STATUS "Found numpy: ${NUMPY_INCLUDE_DIRS}") - +# if NUMPY_INCLUDE_DIRS is not set, then we try to find it +if(NOT NUMPY_INCLUDE_DIRS) + set(NUMPY_REQUIRED_VERSION 1.14.0) + find_package(NumPy ${NUMPY_REQUIRED_VERSION} REQUIRED) + message(STATUS "Found numpy: ${NUMPY_INCLUDE_DIRS}") +endif() # Build # ===== From ffeb37b8906fd306b4db6ccb0431a55d9b84b82c Mon Sep 17 00:00:00 2001 From: DerThorsten Date: Mon, 15 Jan 2024 09:24:28 +0100 Subject: [PATCH 2/2] wasm fixes --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fd03b3d..37625da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,6 @@ else() message(STATUS "Found pybind11: ${pybind11_INCLUDE_DIRS}/pybind11") endif() -# if NUMPY_INCLUDE_DIRS is not set, then we try to find it if(NOT NUMPY_INCLUDE_DIRS) set(NUMPY_REQUIRED_VERSION 1.14.0) find_package(NumPy ${NUMPY_REQUIRED_VERSION} REQUIRED)