-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
[pulsar-client-cpp] New port #35579
[pulsar-client-cpp] New port #35579
Conversation
@microsoft-github-policy-service agree |
Is there anyway I can check the error logs in CI? e.g. the error logs on x64_linux is |
|
If the cmake config is not provided/merged by upstream, it has to be prefixed with Learn to use |
I see. I will fix it soon. |
9735a3a
to
0d049cd
Compare
I renamed the Regarding the Windows and Linux build failures, they seem related to the official way to find |
942a93b
to
9c45e32
Compare
9c45e32
to
d2f4035
Compare
@jimwang118 Now all tests passed, could you take a look? |
Usage test pass with following triplets:
|
- Use find_dependency instead of find_package - Specify BUILD_DYNAMIC_LIB explicitly
Azure Pipelines successfully started running 1 pipeline(s). |
Note: I will be converting your PR to draft status. The above suggested changes are only recommendations. If you are willing to adopt them, please click "ready for review" after making the modifications. If you do not wish to make any changes, please click "ready for review" directly. That way, I can be aware that you've responded since you can't modify the tags. |
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.
I still think it would be better to export the cmake targets. This immediately solves the problems for multi-config generators.
99ba6cf
to
add7cb3
Compare
add7cb3
to
d0410af
Compare
Hi @dg0yt I have addressed your comments and tested with BTW, I found the result of |
ping @dg0yt @jimwang118 @vicroms |
It has been pending for over a week. Could anyone take a look? |
* [pulsar-client-cpp] New port * Remove unnecessary link options * Address review comments - Use find_dependency instead of find_package - Specify BUILD_DYNAMIC_LIB explicitly * Fix the Windows build and linkage * Fix dynamic library not built when VCPKG_LIBRARY_LINKAGE is dynamic on Windows * Fix Linux and OSX failures * Remove PULSAR_FORCE_DYNAMIC_LIBRARY and upgrade version to 3.4.2 * Reduce the changes to the upstream CMakeLists.txt * Remove unused version * Optimize finding and linking dependency and patch the header for static library * Support multi-config generators * Fix path for release libraries
find_package
calls are REQUIRED, are satisfied byvcpkg.json
's declared dependencies, or disabled with CMAKE_DISABLE_FIND_PACKAGE_Xxxvcpkg.json
matches what upstream says.vcpkg.json
matches what upstream says../vcpkg x-add-version --all
and committing the result.Regarding the patch
find_path
/find_libraries
calls to add a path of a library to theCOMMON_LIBS
list, this patch replaces all of them with thefind_package
calls and adds the target to theCOMMON_LIBS
list.PROTOC_PATH
or find it from the system path, then runs a shell command to generate the protobuf source files. This patch uses theprotobuf_generate
function instead.