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

add_library(Rdkafka::rdkafka) issue #308

Open
mohammad-nazari opened this issue Jun 14, 2023 · 0 comments
Open

add_library(Rdkafka::rdkafka) issue #308

mohammad-nazari opened this issue Jun 14, 2023 · 0 comments

Comments

@mohammad-nazari
Copy link

Hi,

Ubuntu version: 22.04
CppKafka version: 0.4.0
CMake version: 3.25.2

Imagine we have a project with two sub-projects 'foo' and 'bar'. Both of them use the CppKafka. They have the command 'find_package(CppKafka REQUIRED)' in their CMakeLists.txt file. Cmake gets this error:
CMake Error at /usr/local/lib/cmake/CppKafka/FindRdKafka.cmake:57 (add_library): add_library cannot create imported target "RdKafka::rdkafka" because another target with the same name already exists.
It occurs if we have more than one calling 'find_package(CppKafka REQUIRED)' command.

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

1 participant