Skip to content

Commit d6aa3ff

Browse files
committed
Copy install fix from #1001
1 parent 369ac4e commit d6aa3ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ if(NOT (CMAKE_VERSION VERSION_LESS 3.0)) # CMake >= 3.0
108108
endif()
109109

110110
if (PYBIND11_INSTALL)
111-
install(FILES ${PYBIND11_HEADERS}
112-
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pybind11)
111+
install(DIRECTORY ${PYBIND11_INCLUDE_DIR}/pybind11 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
113112
# GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
114113
set(PYBIND11_CMAKECONFIG_INSTALL_DIR "share/cmake/${PROJECT_NAME}" CACHE STRING "install path for pybind11Config.cmake")
115114

0 commit comments

Comments
 (0)