File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,15 @@ cmake_minimum_required(VERSION 3.15...3.26)
22
33project (${SKBUILD_PROJECT_NAME} VERSION ${SKBUILD_PROJECT_VERSION} )
44
5+ include (CMakePrintHelpers)
6+
57find_package (Python REQUIRED COMPONENTS Interpreter Development.Module)
68find_package (pybind11 CONFIG REQUIRED)
79
810pybind11_add_module(_core MODULE src/main.cpp)
11+
12+ cmake_print_variables(PYTHON_EXECUTABLE Python_EXECUTABLE PYTHON_MODULE_EXTENSION)
13+
914target_link_libraries (_core PRIVATE pybind11::headers)
1015target_compile_definitions (_core PRIVATE VERSION_INFO=${PROJECT_VERSION} )
1116
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ test = ["pytest"]
2929
3030[tool .scikit-build ]
3131wheel.expand-macos-universal-tags = true
32+ logging.level = " DEBUG"
33+ cmake.verbose = true
3234
3335
3436[tool .pytest .ini_options ]
You can’t perform that action at this time.
0 commit comments