Skip to content

Commit

Permalink
Fix pybind11 not found
Browse files Browse the repository at this point in the history
  • Loading branch information
DerNils-git committed Jan 4, 2024
1 parent 73189c5 commit 1c71d9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ if(openPMD_USE_PYTHON STREQUAL AUTO)
find_package(Python 3.8.0 COMPONENTS Interpreter ${_PY_DEV_MODULE})
if(Python_FOUND)
find_package(pybind11 CONFIG)
if(not pybind11_FOUND)
if(NOT pybind11_FOUND)
message(STATUS "Fetching PyBind11 from https://github.com/pybind/pybind11")
FetchContent_Declare(
pybind11
Expand All @@ -411,7 +411,7 @@ if(openPMD_USE_PYTHON STREQUAL AUTO)
elseif(openPMD_USE_PYTHON)
find_package(Python COMPONENTS Interpreter ${_PY_DEV_MODULE} REQUIRED)
find_package(pybind11 CONFIG)
if(not pybind11_FOUND)
if(NOT pybind11_FOUND)
message(STATUS "Fetching PyBind11 from https://github.com/pybind/pybind11")
FetchContent_Declare(
pybind11
Expand Down

0 comments on commit 1c71d9a

Please sign in to comment.