better cmake for python and pybind11 2.6.1

This commit is contained in:
Erik Frojdh
2020-11-23 08:57:00 +01:00
parent 2eea1882d2
commit 90a9cea670
3 changed files with 4 additions and 9 deletions

View File

@ -192,7 +192,7 @@ if (SLS_USE_INTEGRATION_TESTS)
endif (SLS_USE_INTEGRATION_TESTS)
if (SLS_USE_PYTHON)
set(PYBIND11_CPP_STANDARD -std=c++11)
find_package (Python 3.6 COMPONENTS Interpreter Development)
add_subdirectory(libs/pybind11)
add_subdirectory(python)
endif(SLS_USE_PYTHON)