Also search for development artifacts

We should also search for development artifacts when combining
FindPython3.cmake with find_package(pybind11)
This commit is contained in:
Håkon Hægland 2022-05-30 10:59:42 +02:00
parent 3c0498e55f
commit 101a5ada82

View File

@ -49,7 +49,7 @@ if (OPM_ENABLE_PYTHON)
if(PYTHON_EXECUTABLE AND NOT Python3_EXECUTABLE)
set(Python3_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()
find_package(Python3 REQUIRED COMPONENTS Interpreter)
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
endif()
# Compatibility settings for PythonInterp and PythonLibs