Commit e20cd172 authored by Roel Aaij's avatar Roel Aaij
Browse files

Fix missing failure when pybind11 is not found

parent 6dfbf647
......@@ -44,7 +44,7 @@ find_package(pybind11 CONFIG QUIET)
if (pybind11_FOUND)
set(PYBIND11_FOUND TRUE)
else()
if(Pybind11_FIND_REQUIRED)
if(pybind11_FIND_REQUIRED)
find_package(PythonInterp REQUIRED)
else()
find_package(PythonInterp)
......@@ -62,7 +62,7 @@ else()
OUTPUT_STRIP_TRAILING_WHITESPACE)
if(NOT _PYBIND11_SEARCH_SUCCESS MATCHES 0)
if(Pybind11_FIND_REQUIRED)
if(pybind11_FIND_REQUIRED)
message(FATAL_ERROR
"pybind11 import failure:\n${_PYBIND11_ERROR_VALUE}")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment