We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c71dd3 commit edda89bCopy full SHA for edda89b
CMakeLists.txt
@@ -178,9 +178,8 @@ target_compile_features(pybind11_headers INTERFACE cxx_inheriting_constructors c
178
179
if(PYBIND11_INSTALL)
180
install(DIRECTORY ${PYBIND11_INCLUDE_DIR}/pybind11 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
181
- # GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
182
set(PYBIND11_CMAKECONFIG_INSTALL_DIR
183
- "share/cmake/${PROJECT_NAME}"
+ "${CMAKE_INSTALL_DATAROOTDIR}/cmake/${PROJECT_NAME}"
184
CACHE STRING "install path for pybind11Config.cmake")
185
186
configure_package_config_file(
0 commit comments