eli-schwartz commented on issue #36411: URL: https://github.com/apache/arrow/issues/36411#issuecomment-2738247131
> The targets file is usually generated by the `install` command (specifically [the `install(EXPORT)` signature](https://cmake.org/cmake/help/latest/command/install.html#export)). You do not need a template for that one. The typical usage is to run `install(TARGETS ... EXPORT pkg-exports)` during the build so that `pkg-exports` becomes a collection of all the targets that you want to export, then you run `install(EXPORT pkg-exports FILE path/to/pkg-targets.cmake)` to produce the targets file in your install tree. I think you have perhaps slightly misunderstood the context here -- the question was whether other build systems, such as autotools or cmake, can arrange to install a targets file, which would be aided by the presence of templates in /usr/share/cmake/Modules/ , mostly so that other build systems can have a clear idea of what the results should look like. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
