Silvio Traversaro

Results 2514 comments of Silvio Traversaro

> I had to set `IMPORTED_LOCATION_RELWITHDEBINFO` so even that seems like fun trap that just cost me 4 hours to discover Yes, I was referring exactly to that with "I...

> We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a...

> Any update over here? The suggested workaround doesnt work for me and it throws error saying i cant use `set_target_properties` on alias. I literally did the same thing as...

You need to use either `FetchContent` or use `find_package`, in general you can't mix the two.

In the kind of cross-compilation builds to which the workaround in the OP refers, protobuf is cross-compiled and installed before you configure for cross-compilation the package that depends on protobuf,...

This is related, even if it does not solve the issue described here: https://github.com/protocolbuffers/protobuf/pull/17888/files .

CMake 4.0 was released with an ad-host solution for this exact same problem just for Python, in the form of the [`Python_ARTIFACTS_PREFIX`](https://cmake.org/cmake/help/latest/module/FindPython.html#artifacts-specification) , see https://gitlab.kitware.com/cmake/cmake/-/merge_requests/10157 and https://youtu.be/TESpxsilA1k?si=Jm5ACBd4-8dg5RPp&t=683 . Interestingly, applying...

> Does `-DWITH_PROTOC=` work? It looks like I added this 2 years ago specifically for cross-compilation in our CI, not sure why I didn't think of this back then I...

Thanks for the reference! That is a bit different from what was discussed in this issue, as it requires changes to the CMake source code of the project, while setting...