From 01500bbd2710d9d5a7a86788c73819ca40d44f88 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 28 Apr 2023 13:19:11 -0400 Subject: [PATCH] WIP: add debugging printouts --- CMakeLists.txt | 5 +++++ pyproject.toml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b29453..f8fe1af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,10 +5,15 @@ project( VERSION ${SKBUILD_PROJECT_VERSION} LANGUAGES CXX) +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}) diff --git a/pyproject.toml b/pyproject.toml index d9564fe..9a1a038 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]