Closed yurivict closed 6 years ago
This has been solved in master already.
It's better to use autotools on *NIX, especially if you are a maintainer. If you want to use CMake anyway, you can download the archive of the git repository rather than the distributable tarball which will include the missing file: https://github.com/zeromq/libzmq/archive/v4.2.5.tar.gz
Thanks.
I have a question: how to install builds/cmake/ZeroMQConfig.cmake.in using autotools?
Autotools doesn't touch that since it's a CMake-specific file - it's only included in the distributable tarball
You said to use autotools instead of cmake, but autotools doesn't install .cmake files that other projects expect. I need to enable .cmake files in the FreeBSD port net/libzmq4
. It needs to use the released version, and you said that only the latest, unreleased revision has the fix for cmake build.
Other projects can just use the pkgconfig file that every build ships. But as mentioned above you can use the linked archive of the git repo to build with CMake, as it includes everything, if you need to.
Also if you want to add shipping those CMake files to the automake scripts feel free to send a PR. At the moment it's not implemented.
It also doesn't appear that cmake build has an equivalent for --with-norm
. Nothing defines ZMQ_HAVE_NORM
when cmake is used.
xeus project (https://github.com/QuantStack/xeus) specifically wants cmake files:
Could not find a package configuration file provided by "ZeroMQ" (requested
version 4.2.3) with any of the following names:
ZeroMQConfig.cmake
zeromq-config.cmake
Add the installation prefix of "ZeroMQ" to CMAKE_PREFIX_PATH or set
"ZeroMQ_DIR" to a directory containing one of the above files. If "ZeroMQ"
provides a separate development package or SDK, be sure it has been
installed.
There is an existing request to implement enabling NORM on CMake, but nobody has provided a PR so far: https://github.com/zeromq/libzmq/issues/2207