Configure the install prefix, not only the install - #93
Merged
estebanzimanyi merged 1 commit intoAug 29, 2026
Merged
Conversation
meos.pc is generated from CMAKE_INSTALL_PREFIX at configure time, so a build configured for the default prefix names /usr/local wherever the files are later relocated to. A consumer that follows the installed library's own pkg-config file, which is how a generated binding discovers the include dir and the family macros it was built with, is then sent to whatever occupies the machine-wide directory instead of the prefix this script installed into. Configuring with the parse prefix makes the file describe the tree it belongs to.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Configure the install prefix, not only the install. meos.pc is generated from CMAKE_INSTALL_PREFIX at configure time, so a build configured for the default prefix names /usr/local wherever the files are later relocated to, and a consumer that follows the installed library's own pkg-config file reaches whatever occupies the machine-wide directory instead of the prefix this script installs into. That file is how a generated binding discovers both the include dir and the family macros the library carries, so a wrong prefix costs the macros too: the POINTCLOUD-guarded declarations stay invisible and the build reports undeclared symbols the library exports. A clean run of the patched script writes the parse prefix into meos.pc, pkg-config --cflags resolves to that prefix with all ten family macros, and the GoMEOS functions package builds against it driven by PKG_CONFIG_PATH alone.