Regarding the line below:
| # GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share". |
| set(PYBIND11_CMAKECONFIG_INSTALL_DIR |
| "share/cmake/${PROJECT_NAME}" |
| CACHESTRING"install path for pybind11Config.cmake") |
Why can't it be:
set(PYBIND11_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/cmake/${PROJECT_NAME}" CACHE STRING "install path for pybind11Config.cmake")
Regarding the line below:
pybind11/CMakeLists.txt
Lines 181 to 184 in 59323a9
Why can't it be:
set(PYBIND11_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/cmake/${PROJECT_NAME}" CACHE STRING "install path for pybind11Config.cmake")