diff --git a/CMakeLists.txt b/CMakeLists.txt index 526e39c..c7e6f72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}) diff --git a/pyproject.toml b/pyproject.toml index fc2ef76..32150b9 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]