-
Notifications
You must be signed in to change notification settings - Fork 31
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
Error evaluating generator expression: $<TARGET_PROPERTY:protobuf::libprotobuf,INTERFACE_INCLUDE_DIRECTORIES> Target "protobuf::libprotobuf" not found. #60
Comments
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). Does this happen even with a totally fresh configuration of cmake? The first thing I’d recommend is to delete your entire build folder and try to configuring cmake freshly. This kind of error is most common when the CMakeCache.txt is in a confused state. In theory there shouldn't be a reason that multiple uses of Protobuf should cause this error. If this error always happens, even with a fresh configuration, then maybe the |
Original comment by Alex Biddulph (Bitbucket: Bidski). This error always happens, even with a fresh configuration. |
Original comment by Alex Biddulph (Bitbucket: Bidski). 3.5.0, but I may be updating it to the latest (or a newer version) soon. |
Original comment by Alex Biddulph (Bitbucket: Bidski). Currently running 16.04. |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). Thanks for the info! Could you try out the change in this pull request? |
Original comment by Alex Biddulph (Bitbucket: Bidski). No change |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). I've run out of theories for why it wouldn't be working. To help debug you could try adding this to your
I don’t know if that will tell me anything helpful, but it’s the next thing I would look at if I needed to debug this. If you're able to share your project's |
Original comment by Alex Biddulph (Bitbucket: Bidski). I added the following before
Results are:
My projects I can confirm that there is some sort of clash between the two detections of protobuf. If I edit this file to first find ignition-cmake0 and then IgnProtobuf (instead of finding Protobuf), everything works as expected. Not sure what could be happening though. (I need to revert your suggested PR to make this work though). |
Original comment by Alex Biddulph (Bitbucket: Bidski). Is there any update on this? |
Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey). Honestly I’ve run out of theories on what could be causing this. I think I’d have to have a trace of the cmake run history to have any hope of making sense of this behavior. You could add the |
Original comment by Alex Biddulph (Bitbucket: Bidski). CMake Trace output |
Original report (archived issue) by Alex Biddulph (Bitbucket: Bidski).
I am having a very similar issue to Issue#55 (#55).
I am building a program using cmake (not using catkin) that depends on ignition-transport4. When creating my library and listing
${IGNITION-TRANSPORT_LIBRARIES}
as target link libraries I getappearing about 10 times while cmake is creating the build files.
I have tried adding
both before and after my call to
find_package(ignition-transport4 REQUIRED)
but to no avail.My guess is that the rest of my program also has a dependency on protobuf (included at the top-level directory) and that this is somehow clashing with
FindIgnProtobuf.cmake
in a strange way. Unfortunately, I can't figure out how to test this theory properly.How can I resolve this?
The text was updated successfully, but these errors were encountered: