jiridanek commented on pull request #334:
URL: https://github.com/apache/qpid-proton/pull/334#issuecomment-922436392


   > I think this may need configure_package_config_file(... PATHVARS 
INCLUDEDIR...) and using @PACKAGE_INCLUDEDIR@ inside the .in file to get the 
potentially relocated var.
   
   This works for `cmake.in` files, but not for `pkgconfig.in`. The way cmake 
does the relocation is that it emits cmake code which sets helper variables, 
that are then used in the @PACKAGE_INCLUDEDIR@.
   
   I have a reasonably good solution for this, but my last problem is that 
Irina's RPM specs pass in absolute paths for the libdir and includedir, which I 
need to relativize for use in pkgconfig, like this
   
   
![Screenshot_20210919_102710](https://user-images.githubusercontent.com/442720/133920790-d435d23f-f406-42fc-a168-657a0fb1b665.png)
   
   Hopefully string replacement (replace prefix, take care not to create 
absolute path by mistake) will take care of that.
   
   
https://indico.cern.ch/event/848215/contributions/3591953/attachments/1923018/3181752/HSFPackagingRelocation.pdf


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to