From e42980d8f442947aeb70644c5cb3a4b640b4834f Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Thu, 25 Jan 2024 10:23:12 -0500 Subject: [PATCH] Search for python things better --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3410e58..d2c65d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,8 @@ else() endif() if (CHEBTOOLS_NANOBIND) - find_package(Python COMPONENTS Interpreter Development REQUIRED) + + find_package(Python COMPONENTS Interpreter Development.Module REQUIRED) # from https://github.com/pypa/cibuildwheel/issues/639#issuecomment-1397443143 if (CHEBTOOLS_PYBIND11) message(FATAL_ERROR "only one python binding can be enabled") endif()