Cannot build with MSYS2, possibly due to incorrect find of libzmq
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- cmake, cpp
- Domain
- build-system
Research direction
Start with CMakeLists.txt at the linked target definition and libzmq-pkg-config/FindZeroMQ.cmake, then inspect the generated cppzmqTargets.cmake under share/cmake/cppzmq. Reproduce the MSYS2 Ninja build and verify that the exported target names the installed ZeroMQ library correctly and no longer produces libzmq-NOTFOUND.
Written by the indexing model from the issue text.
Description
I'm linking a cmake project against cppzmq 4.7.1, and the build steps fails with
ninja: error: 'libzmq-NOTFOUND', needed by '<binary>.exe', missing and no known rule to make it
I discovered that libzmq is found fine, however the file <prefix>/share/cmake/cppzmq/cppzmqTargets.cmake includes this code
set_target_properties(cppzmq PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "libzmq"
)
so it is declaring a linked library "libzmq". Imo, this should be "zmq", as the "lib" prefix is automatically added. If I change "libzmq" to just "zmq", the problem goes away.
- Dominant language
- C++
- Stars
- 2.3k
- Forks
- 798
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zeromq/cppzmq
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·