Skip to content

Commit 809270e

Browse files
authored
WIP: add debugging printouts
1 parent f0e38ef commit 809270e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@ cmake_minimum_required(VERSION 3.15...3.26)
22

33
project(${SKBUILD_PROJECT_NAME} VERSION ${SKBUILD_PROJECT_VERSION})
44

5+
include(CMakePrintHelpers)
6+
57
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
68
find_package(pybind11 CONFIG REQUIRED)
79

810
pybind11_add_module(_core MODULE src/main.cpp)
11+
12+
cmake_print_variables(PYTHON_EXECUTABLE Python_EXECUTABLE PYTHON_MODULE_EXTENSION)
13+
914
target_link_libraries(_core PRIVATE pybind11::headers)
1015
target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION})
1116

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ test = ["pytest"]
2929

3030
[tool.scikit-build]
3131
wheel.expand-macos-universal-tags = true
32+
logging.level = "DEBUG"
33+
cmake.verbose = true
3234

3335

3436
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)