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

Cannot build with MSYS2, possibly due to incorrect find of libzmq #645

Open
themightyoarfish opened this issue Nov 20, 2024 · 1 comment

Comments

@themightyoarfish
Copy link

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.

Is this related to the use of "libzmq" here or here maybe?

@themightyoarfish
Copy link
Author

It appears upgrading cppzmq also fixes this.

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