urdfdom_headers
urdfdom_headers copied to clipboard
Fix assumption that CMAKE_INSTALL_*DIR paths are relative.
The CMAKE_INSTALL_*DIR
variables are allowed to contain absolute paths according to the CMake documentation. This PR fixes the handling of these absolute paths while retaining the current behavior if they are relative. I also fixed the hardcoded includedir
in the pkg-config file.
See https://github.com/jtojnar/cmake-snips#assuming-cmake_install_dir-is-relative-path for more information about this problem.
I fixed the conflicts and tested the updated patch. I would appreciate getting this reviewed, since we depend on this patch to build this package in nixpkgs.