| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6598f7d commit 8750602
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,9 +5,9 @@ project(mymodule) | |||
| 5 | 5 | find_package(pybind11 CONFIG REQUIRED) | |
| 6 | 6 | find_package(xtensor REQUIRED) | |
| 7 | 7 | find_package(xtensor-python REQUIRED) | |
| 8 | - find_package(Python REQUIRED COMPONENTS NumPy) | ||
| 8 | + find_package(Python3 REQUIRED COMPONENTS NumPy) | ||
| 9 | 9 | ||
| 10 | 10 | pybind11_add_module(mymodule main.cpp) | |
| 11 | - target_link_libraries(mymodule PUBLIC pybind11::module xtensor-python Python::NumPy) | ||
| 11 | + target_link_libraries(mymodule PUBLIC pybind11::module xtensor-python Python3::NumPy) | ||
| 12 | 12 | ||
| 13 | 13 | target_compile_definitions(mymodule PRIVATE VERSION_INFO=0.1.0) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,12 +2,12 @@ cmake_minimum_required(VERSION 3.29) | |||
| 2 | 2 | ||
| 3 | 3 | project(mymodule) | |
| 4 | 4 | ||
| 5 | - find_package(Python REQUIRED COMPONENTS Interpreter Development NumPy) | ||
| 5 | + find_package(Python3 REQUIRED COMPONENTS Interpreter Development NumPy) | ||
| 6 | 6 | find_package(pybind11 REQUIRED CONFIG) | |
| 7 | 7 | find_package(xtensor REQUIRED) | |
| 8 | 8 | find_package(xtensor-python REQUIRED) | |
| 9 | 9 | ||
| 10 | 10 | pybind11_add_module(mymodule main.cpp) | |
| 11 | - target_link_libraries(mymodule PUBLIC pybind11::module xtensor-python Python::NumPy) | ||
| 11 | + target_link_libraries(mymodule PUBLIC pybind11::module xtensor-python Python3::NumPy) | ||
| 12 | 12 | ||
| 13 | 13 | target_compile_definitions(mymodule PRIVATE VERSION_INFO=0.1.0) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,13 +2,13 @@ cmake_minimum_required(VERSION 3.29) | |||
| 2 | 2 | ||
| 3 | 3 | project(mymodule) | |
| 4 | 4 | ||
| 5 | - find_package(Python REQUIRED COMPONENTS Interpreter Development NumPy) | ||
| 5 | + find_package(Python3 REQUIRED COMPONENTS Interpreter Development NumPy) | ||
| 6 | 6 | find_package(pybind11 REQUIRED CONFIG) | |
| 7 | 7 | find_package(xtensor REQUIRED) | |
| 8 | 8 | find_package(xtensor-python REQUIRED) | |
| 9 | 9 | ||
| 10 | 10 | pybind11_add_module(mymodule python.cpp) | |
| 11 | - target_link_libraries(mymodule PUBLIC pybind11::module xtensor-python Python::NumPy) | ||
| 11 | + target_link_libraries(mymodule PUBLIC pybind11::module xtensor-python Python3::NumPy) | ||
| 12 | 12 | ||
| 13 | 13 | target_compile_definitions(mymodule PRIVATE VERSION_INFO=0.1.0) | |
| 14 | 14 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments