Skip to content

Commit 5ba0d11

Browse files
committed
Install pybind header in subdirectory of python include directories
1 parent 0defac5 commit 5ba0d11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ endif()
110110

111111
if (PYBIND11_INSTALL)
112112
install(FILES ${PYBIND11_HEADERS}
113-
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pybind11)
113+
DESTINATION ${PYTHON_INCLUDE_DIRS}/pybind11)
114114
# GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
115115
set(PYBIND11_CMAKECONFIG_INSTALL_DIR "share/cmake/${PROJECT_NAME}" CACHE STRING "install path for pybind11Config.cmake")
116116

0 commit comments

Comments
 (0)