diff --git a/CMakeLists.txt b/CMakeLists.txt index 93868fc62..0b7e23376 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,6 +174,7 @@ if (SLS_USE_INTEGRATION_TESTS) endif (SLS_USE_INTEGRATION_TESTS) if (SLS_USE_PYTHON) + set(PYBIND11_CPP_STANDARD -std=c++11) add_subdirectory(libs/pybind11) add_subdirectory(python) endif(SLS_USE_PYTHON) diff --git a/conda-recepie/build.sh b/conda-recepie/build.sh index 6cf886c0a..942597e80 100755 --- a/conda-recepie/build.sh +++ b/conda-recepie/build.sh @@ -8,6 +8,7 @@ cmake .. \ -DSLS_USE_RECEIVER=ON \ -DSLS_USE_GUI=ON \ -DSLS_USE_TESTS=ON \ + -DPYBIND11_PYTHON_VERSION=$CONDA_PY \ -DSLS_USE_PYTHON=ON \ -DCMAKE_BUILD_TYPE=Release \ -DSLS_USE_HDF5=OFF\