GNOME Bugzilla – Bug 792148
cmake: Installed GtkDocConfig.cmake has incorrect bindir path
Last modified: 2018-01-10 18:52:08 UTC
Created attachment 366234 [details] [review] Fix for this issue. This fixes the issue mentioned in #776205. The generated and installed `GtkDocConfig.cmake` had `@bindir@` being replaced with `${exec_prefix}/bin` by `configure.ac`. This is because the path substitutions used by autoconf are what they are so that they can be overridden like `make install exec_prefix=...`. In this case though, we need the actual expanded path, so the best way to do that is by doing the substitution ourselves in the Makefile.
The following fix has been pushed: 5f7b443 cmake: Correctly perform bindir substitution.
Created attachment 366612 [details] [review] cmake: Correctly perform bindir substitution. In the installed cmake config files, the bindir path needs to be absolute and without using the exec_prefix variable.
Thanks!