Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top Level vs Library Cmake #297

Open
baconpaul opened this issue Aug 19, 2024 · 0 comments
Open

Top Level vs Library Cmake #297

baconpaul opened this issue Aug 19, 2024 · 0 comments

Comments

@baconpaul
Copy link
Collaborator

In #296 #290 and #291 among other things we see a set of issues that come from this question: Is our main CMakeLists configured for a library (so included in a higher level project) or a standalone build a wrapper (so you can build this project and get something useful).

The answer have right now is kind of not right for either.

So some staring at the CMake is order.

I would like to go to a mode where

add_subdirectory(libs/clap-wrapper)

works and also where

cmake -Bbuild -DCLAP_WRAPPER_BUILD_WRAPPER=TRUE

works but where a top level build without BUILD_WRAPPER=TRUE doesn't try to add an endpoint targets.

But what I really want to do is stare at it for a bit, come up with a plan, propose it cleanly in this issue, then get @defiantnerd and @mthierman and others to look at that plan, and if we all agree on it, then code it up for 0.11 or 0.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant