Open DavidM-Fox opened 3 years ago
I've only skimmed your issue quickly but at least I'm using czmq as a subdirectory in cmake. See here: https://github.com/hku-ect/gazebosc/blob/16c19a26cb987a0a75808dd42b7f10f287a84664/CMakeLists.txt#L66
We should be able to this better so if I can help I will
From what I recall this is mostly about using zeromq projects as subdirectories in cmake. I think the ingescape project is doing this succesfully: see: https://github.com/zeromq/ingescape/blob/feb016e9c797e1a5c7b978d14ed6fcd78e2372e2/CMakeLists.txt#L161
This issue has been automatically marked as stale because it has not had recent activity for 90 days. It will be closed if no further activity occurs within 21 days. Thank you for your contributions.
I'm having trouble configuring/building czmq with CMake. This is the current project structure with the three libraries' source under "extlibs":
Since I am building the libzmq library, how can I structure my CMake so that czmq won't complain about libzmq.lib not being present at config time? I have tested building zmq with sodium with what I have and it works, just adding the additional build_libczmq() makes it fail. I have each library installing to "root/build/x64/extlibs/". I have tried a custom target dependency structure but am having no luck with getting czmq to be okay with not seeing the .lib at config time. What can I try to make this work? Thanks!
The root CMakeLists.txt:
And the "extlibs/CMakeLists.txt"
CMake output: