File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 8080endif ()
8181
8282find_package (Threads)
83+ find_package (pybind11 REQUIRED)
84+ find_package (Python REQUIRED COMPONENTS Interpreter Development NumPy)
8385
8486include_directories (${GTEST_INCLUDE_DIRS} )
8587
@@ -93,7 +95,7 @@ set(XTENSOR_PYTHON_TESTS
9395)
9496
9597add_executable (test_xtensor_python ${XTENSOR_PYTHON_TESTS} ${XTENSOR_PYTHON_HEADERS} )
96- target_link_libraries (test_xtensor_python xtensor-python ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${PYTHON_LIBRARIES} )
98+ target_link_libraries (test_xtensor_python xtensor-python ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} pybind11::module Python::NumPy )
9799
98100if (DOWNLOAD_GTEST OR GTEST_SRC_DIR)
99101 add_dependencies (test_xtensor_python gtest_main)
You can’t perform that action at this time.
0 commit comments