Skip to content

Commit 8f6e31c

Browse files
committed
naming flexibility for installed includes directory via GNUInstallDirs
1 parent 4de2710 commit 8f6e31c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,7 @@ if (PYBIND11_TEST)
180180
endif()
181181

182182
if (PYBIND11_INSTALL)
183-
install(FILES ${PYBIND11_HEADERS} DESTINATION include/pybind11)
183+
include(GNUInstallDirs)
184+
install(FILES ${PYBIND11_HEADERS}
185+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/pybind11)
184186
endif()

0 commit comments

Comments
 (0)