File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ project(mymodule)
55find_package (pybind11 CONFIG REQUIRED )
66find_package (xtensor REQUIRED )
77find_package (xtensor-python REQUIRED )
8- find_package (Python REQUIRED COMPONENTS NumPy )
8+ find_package (Python3 REQUIRED COMPONENTS NumPy )
99
1010pybind11_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 )
1212
1313target_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)
22
33project (mymodule)
44
5- find_package (Python REQUIRED COMPONENTS Interpreter Development NumPy )
5+ find_package (Python3 REQUIRED COMPONENTS Interpreter Development NumPy )
66find_package (pybind11 REQUIRED CONFIG )
77find_package (xtensor REQUIRED )
88find_package (xtensor-python REQUIRED )
99
1010pybind11_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 )
1212
1313target_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)
22
33project (mymodule)
44
5- find_package (Python REQUIRED COMPONENTS Interpreter Development NumPy )
5+ find_package (Python3 REQUIRED COMPONENTS Interpreter Development NumPy )
66find_package (pybind11 REQUIRED CONFIG )
77find_package (xtensor REQUIRED )
88find_package (xtensor-python REQUIRED )
99
1010pybind11_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 )
1212
1313target_compile_definitions (mymodule PRIVATE VERSION_INFO=0.1.0 )
1414
You can’t perform that action at this time.
0 commit comments