← All tasks
cpppybind/pybind11 #2571Not a task: already works

[QUESTION] Why is GNUInstallDirs not used in CMakeLists.txt?

envgap__pybind__pybind11-2571

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
7c71dd386161703dc25860870f579cca0ff3a9a8
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

pybind/pybind11 #2571 · read the original issue
Regarding the line below:



https://github.com/pybind/pybind11/blob/59323a975ade742a5904fff23dbd3aecf72ad091/CMakeLists.txt#L181-L184



Why can't it be:



`set(PYBIND11_CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/cmake/${PROJECT_NAME}" CACHE STRING "install path for pybind11Config.cmake")`
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]