Skip to content

Commit

Permalink
Search for python things better
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Jan 25, 2024
1 parent 4f81196 commit e42980d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -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()
Expand Down

0 comments on commit e42980d

Please sign in to comment.