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

compile ObjectBox without examples #33

Open
LIJOIGNATIUS opened this issue Aug 2, 2023 · 3 comments · May be fixed by #37
Open

compile ObjectBox without examples #33

LIJOIGNATIUS opened this issue Aug 2, 2023 · 3 comments · May be fixed by #37
Labels
enhancement New feature or request

Comments

@LIJOIGNATIUS
Copy link

I'm looking to compile ObjectBox without including the examples and test apps. Essentially, I want to keep only the ObjectBox library in my environment.

It would be great if you could consider adding an option to remove examples when using the FetchContent_MakeAvailable command.

This way, users would have the flexibility to exclude example programs from the build process, reducing unnecessary build time and keeping the project clean and concise

@LIJOIGNATIUS LIJOIGNATIUS added the enhancement New feature or request label Aug 2, 2023
@greenrobot
Copy link
Member

Isn't this exactly what https://cpp.objectbox.io/installation describes? Let us know if we can improve the docs...

@LIJOIGNATIUS
Copy link
Author

I apologize for the late response. I had a tight schedule and I just got a chance to check the thread.

Following the instructions, CMake will fetch the objectbox-c repository from GitHub. This includes the example programs, which I don't want to run. To avoid this, I need to manually remove or comment out the example directory in the CMakeLists.txt file.

@gf3 gf3 linked a pull request Nov 28, 2023 that will close this issue
@gf3
Copy link

gf3 commented Dec 1, 2023

opened PR #37 to address this issue, as it was preventing compilation in a project for me

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

Successfully merging a pull request may close this issue.

3 participants