fix: Python include directory was missing from DIRS (#2636)

This commit is contained in:
Henry Schreiner
2020-11-02 20:45:54 -05:00
committed by GitHub
parent 7d6713a46d
commit b8dc60ec8f
4 changed files with 26 additions and 9 deletions

View File

@@ -36,6 +36,12 @@ if(NOT is_config)
set(optional_global GLOBAL)
endif()
# If not run in Python mode, we still would like this to at least
# include pybind11's include directory:
set(pybind11_INCLUDE_DIRS
"${pybind11_INCLUDE_DIR}"
CACHE INTERNAL "Include directory for pybind11 (Python not requested)")
# --------------------- Shared targets ----------------------------
# Build an interface library target: