Skip to content

Commit 6598f7d

Browse files
Embed python for text exe
1 parent 6c6ea06 commit 6598f7d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ else()
4545
message(STATUS "Found xtensor: ${xtensor_INCLUDE_DIRS}/xtensor")
4646
endif()
4747

48-
find_package(Python3 COMPONENTS Interpreter Development.Module NumPy REQUIRED)
48+
find_package(Python3 COMPONENTS Development.Embed NumPy REQUIRED)
4949

5050
set(pybind11_REQUIRED_VERSION 3.0.0)
5151
if (NOT TARGET pybind11::headers)

‎test/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ set(XTENSOR_PYTHON_TESTS
8484
)
8585

8686
add_executable(test_xtensor_python ${XTENSOR_PYTHON_TESTS} ${XTENSOR_PYTHON_HEADERS})
87-
target_link_libraries(test_xtensor_python xtensor-python ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
87+
target_link_libraries(test_xtensor_python xtensor-python ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} Python3::Python)
8888

8989
if(DOWNLOAD_GTEST OR GTEST_SRC_DIR)
9090
add_dependencies(test_xtensor_python gtest_main)

0 commit comments

Comments
 (0)