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

Enhanced CMakeLists.txt to create a proper export #129

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

kobalicek
Copy link
Contributor

At the moment miniocpp-config.cmake specifies dependencies, but when it's actually used by a client it requires that client resolves the dependencies himself - which means that the client would have to use find_package() to find everything that minio-cpp uses.

This fixes the problem. It creates miniocpp-targets.cmake, which is a file generated by cmake, and also creates miniocpp-config.cmake, which adds the required find_package() commands to the cmake and then includes miniocpp-targets.cmake, which provides the targets.

This change finalizes the integration of minio-cpp with both cmake and vcpkg.

At the moment miniocpp-config.cmake specifies dependencies, but when
it's actually used by a client it requires that client resolves the
dependencies himself - which means that the client would have to use
find_package() to find everything that minio-cpp uses.

This fixes the problem. It creates miniocpp-targets.cmake, which is
a file generated by cmake, and also creates miniocpp-config.cmake,
which adds the required find_package() commands to the cmake and
then includes miniocpp-targets.cmake, which provides the targets.

This change finalizes the integration of minio-cpp with both cmake
and vcpkg.
@kobalicek kobalicek merged commit f5132e0 into main Apr 5, 2024
4 checks passed
@kobalicek kobalicek deleted the cmake_enhancements branch April 5, 2024 08:57
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

Successfully merging this pull request may close these issues.

2 participants