Add a dummy common.h header with a deprecation warning

This commit is contained in:
Dean Moldovan 2017-09-04 23:22:22 +02:00
parent 00b8f3655d
commit a80af9557d
3 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,7 @@ set(PYBIND11_HEADERS
include/pybind11/buffer_info.h include/pybind11/buffer_info.h
include/pybind11/cast.h include/pybind11/cast.h
include/pybind11/chrono.h include/pybind11/chrono.h
include/pybind11/common.h
include/pybind11/complex.h include/pybind11/complex.h
include/pybind11/options.h include/pybind11/options.h
include/pybind11/eigen.h include/pybind11/eigen.h

View File

@ -0,0 +1,2 @@
#include "detail/common.h"
#warning "Including 'common.h' is deprecated. It will be removed in v3.0. Use 'pybind11.h'."

View File

@ -23,6 +23,7 @@ else:
'include/pybind11/buffer_info.h', 'include/pybind11/buffer_info.h',
'include/pybind11/cast.h', 'include/pybind11/cast.h',
'include/pybind11/chrono.h', 'include/pybind11/chrono.h',
'include/pybind11/common.h',
'include/pybind11/complex.h', 'include/pybind11/complex.h',
'include/pybind11/eigen.h', 'include/pybind11/eigen.h',
'include/pybind11/embed.h', 'include/pybind11/embed.h',