test: pass through C++ std for cmake test

This commit is contained in:
Henry Schreiner 2020-07-22 10:19:28 -04:00 committed by Henry Schreiner
parent ef057f12b6
commit 3d20b73e87

View File

@ -13,6 +13,7 @@ function(pybind11_add_build_test name)
set(build_options "-DCMAKE_PREFIX_PATH=${PROJECT_BINARY_DIR}/mock_install"
"-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
"-DPYTHON_EXECUTABLE:FILEPATH=${PYTHON_EXECUTABLE}"
"-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}"
"-DPYBIND11_CPP_STANDARD=${PYBIND11_CPP_STANDARD}")
if(NOT ARG_INSTALL)
list(APPEND build_options "-DPYBIND11_PROJECT_DIR=${PROJECT_SOURCE_DIR}")