-
Notifications
You must be signed in to change notification settings - Fork 57
feature: Add control flag for static compile #277
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
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Jeansen The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @Jeansen! |
|
Hello @Jeansen Can you set shared compile by default ? Change |
|
Actually kubernetes/CMakeLists.txt is generated from https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/C-libcurl/CMakeLists.txt.mustache Can you please submit a PR to https://github.com/openAPITools/openapi-generator/ ? |
| cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON .. | ||
| # If you don't want to build a shared but a static library: | ||
| cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=OFF .. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpse of "-DBUILD_TESTING=OFF" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh..that was a mistake. No purpose ... copy / paste error.
OK, I'll do that ;-) |
|
OpenAPITools/openapi-generator#21635 And I followed your suggestion to change -DBUILD_SHARED_LIBS to -DBUILD_STATIC_LIBS. I admit, it was late and I overlooked some details. Thank you for the review! Since this PR will be then in OpenAPITools, I'll close this one. |
|
@ityuhui My changes have been merged in openapi-generator and will be included in the upcoming release. Please drop me a line when this release is part of this project. I'd be happy to update the docs in this repo to reflect the new changes. |
|
Sure. I think @brendandburns is regenerating the client to include all recent CRs from openapi-generator. |
|
Hi @Jeansen The latest changes from openapi-generator have been merged here. |
|
Done ;-) |
Similar to https://github.com/yaml/libyaml, this PR adds a flag BUILD_SHARED_LIBS to build a statically linked library of kubernetes-client.