Skip to content

Commit

Permalink
Fix finding numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
lamyj committed Sep 29, 2023
1 parent 09a259d commit 4133fb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .ci/build/conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

subprocess.check_call([
conda, "install", "--yes", "-c", "conda-forge",
"boost", "boost-cpp", "cmake", "ninja", "numpy", "pybind11", "scipy",
"boost", "boost-cpp", "cmake", "make", "numpy", "pybind11", "scipy",
"xsimd", "xtensor", "xtensor-python"])
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.14)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.27)
cmake_policy(SET CMP0148 NEW)
endif()
Expand Down
5 changes: 3 additions & 2 deletions wrappers/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if(NOT MSVC)
set(XTENSOR_USE_XSIMD 1)
endif()

find_package(Python COMPONENTS Interpreter Development REQUIRED)
find_package(Python COMPONENTS Interpreter Development Development.Module NumPy REQUIRED)
find_package(pybind11 REQUIRED)
find_package(xsimd REQUIRED)
find_package(xtensor REQUIRED)
Expand All @@ -29,7 +29,8 @@ target_include_directories(
${CMAKE_SOURCE_DIR}/src ${PYTHON_INCLUDE_DIRS} ${xsimd_INCLUDE_DIRS}
${NUMPY_INCLUDE_DIR})

target_link_libraries(pysycomore PUBLIC libsycomore xtensor xtensor-python)
target_link_libraries(
pysycomore PUBLIC libsycomore Python::NumPy xtensor xtensor-python)

set_target_properties(
pysycomore PROPERTIES
Expand Down

0 comments on commit 4133fb4

Please sign in to comment.