cmake: Introduce Libmultiprocess_INSTALL_PKGCONFIG_FILE build option#112
cmake: Introduce Libmultiprocess_INSTALL_PKGCONFIG_FILE build option#112hebasto wants to merge 1 commit intobitcoin-core:masterfrom
Libmultiprocess_INSTALL_PKGCONFIG_FILE build option#112Conversation
| configure_file(pkgconfig/libmultiprocess.pc.in "${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/libmultiprocess.pc" @ONLY) | ||
| install(FILES "${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/libmultiprocess.pc" |
There was a problem hiding this comment.
Also, the pkgconfig subdirectory seems redundant here, no?
|
Is there a particular reason to not install it by default? Note that |
This change makes the installation of the `pkgconfig/libmultiprocess.pc` file optional.
39aa7ea to
f8eea25
Compare
The default value of the new option has been changed to |
|
What's the motivation for this change? It seems like an unusual thing for a package to have a configuration option to not fully install itself. And if installing a .pc file is optional, should installing .cmake package files be optional also? I think I'd prefer the cmake code here to be as vanilla as possible and not have a non-standard option like this, unless there is a real reason why it's useful. Also it seems would seem better to just use cmake components to control what is installed instead of using both cmake components and cmake options to control what is installed. Maybe installed metadata files could be moved into different components to provide finer-grained control over what to install if this is necessary. |
Currently, the package built in Bitcoin Core depends looks like that: The |
I think I would prefer that. |
This PR makes the installation of the
pkgconfig/libmultiprocess.pcfile optional.