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

Can you provide a static lib instead of dynamic .dylib when build the ggwave cli or ggwave-rx cli? #92

Open
dongyuwei opened this issue Mar 27, 2023 · 2 comments

Comments

@dongyuwei
Copy link

So we can embed the ggwave-rx cli in App easily.

I'm not familiar with cmake, don't know how to modify the config.

Thanks!

@goldyfruit
Copy link

This is what I ended-up with:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 28cd09f..cfeaf7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,7 +31,7 @@ else()
     if (WIN32)
         set(BUILD_SHARED_LIBS_DEFAULT OFF)
     else()
-        set(BUILD_SHARED_LIBS_DEFAULT ON)
+           set(BUILD_SHARED_LIBS_DEFAULT OFF)
     endif()
 endif()

@dongyuwei
Copy link
Author

Thanks for your reply!

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

2 participants