Skip to content

Handling cmake-based subproject with non-standard layout #10362

Answered by eli-schwartz
dotnwat asked this question in Q&A
Discussion options

You must be logged in to vote

No, nor to have meson.build somewhere other than the root of the project.

I have a question in return: why isn't it in the project root?

...

A somewhat related question is, is the project root actually the project root?

What I mean by this is, there are projects where a cmake project is only part of the source tree, and the rest is unrelated code -- maybe it's a monorepo, maybe it is a library available in a variety of languages and the CMakeLists.txt is only in the cpp/ directory which is all you want. In such cases, the correct solution is probably to release a tarball for just the cmake project (and source code).

...

Given the actual directory structure third_party/contrib/cmake/ it so…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@dotnwat
Comment options

@eli-schwartz
Comment options

Answer selected by dotnwat
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants