Skip to content

Commit

Permalink
WIP: add debugging printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Apr 28, 2023
1 parent f0e38ef commit 809270e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ cmake_minimum_required(VERSION 3.15...3.26)

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

include(CMakePrintHelpers)

find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(pybind11 CONFIG REQUIRED)

pybind11_add_module(_core MODULE src/main.cpp)

cmake_print_variables(PYTHON_EXECUTABLE Python_EXECUTABLE PYTHON_MODULE_EXTENSION)

target_link_libraries(_core PRIVATE pybind11::headers)
target_compile_definitions(_core PRIVATE VERSION_INFO=${PROJECT_VERSION})

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ test = ["pytest"]

[tool.scikit-build]
wheel.expand-macos-universal-tags = true
logging.level = "DEBUG"
cmake.verbose = true


[tool.pytest.ini_options]
Expand Down

0 comments on commit 809270e

Please sign in to comment.