[build] Honor project installation by preserving headers#184
[build] Honor project installation by preserving headers#184uilianries wants to merge 1 commit intoJoeStrout:masterfrom
Conversation
Signed-off-by: Uilian Ries <uilianries@gmail.com>
|
Hi, 👋 Do you know if there has been any progress on this pull request? This change would be useful for me. |
|
Sorry I missed this! But I confess that I don't understand it. The CMake process is meant to build an application, not a library. It doesn't need any headers once the app is built, and I certainly wouldn't want it sticking useless headers on my system. I don't see a lot of value in a MiniScript library — it's only a handful of files; better to just include the source code in your project and avoid library version headaches. So, can you explain the motivation behind this change? |
|
@JoeStrout Thank you for your explanation. The miniscript project is packaged and distributed in Conan Center (https://conan.io/center/recipes/miniscript?version=1.5.1), in which the library is managed based on the project version. This PR was opened not only to improve the packaging process but also to allow consuming the library on your side. Regards. |
Greetings!
The current CMakeLists.txt is not installing those headers provided by the project, only the library and application:
When consuming the installed artifacts, it will not be able to point at same folder are include directory. This PR updates the CMakeLists.txt, following the possibility customize the folders for installation, for both libraries and application, plus, installing the headers.