zeromq/cppzmq

[cmake]ZEROMQ_LIBRARY_STATIC not found

jiangqii opened this issue · 3 comments

Fedora 37

[root@68b6df3587f7 build]# cmake ..
-- Configuring done (0.0s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ZEROMQ_LIBRARY_STATIC
    linked by target "zmqpp-static" in directory /root/zmqpp

-- Generating done (0.0s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

I can't find something to solve it!

But it seems like it can make

/root/zmqpp/src/tests/test_socket_options.cpp:183:116: warning: unused parameter ‘positive_only’ [-Wunused-parameter]
[ 94%] Building CXX object CMakeFiles/zmqpp-test-runner.dir/src/tests/test_z85.cpp.o
[ 96%] Building CXX object CMakeFiles/zmqpp-test-runner.dir/src/tests/test_auth.cpp.o
[ 98%] Building CXX object CMakeFiles/zmqpp-test-runner.dir/src/tests/test_proxy.cpp.o
[100%] Linking CXX executable zmqpp-test-runner
[100%] Built target zmqpp-test-runner
[root@68b6df3587f7 build]# ls
CMakeCache.txt  CMakeFiles  CTestTestfile.cmake  Makefile  cmake_install.cmake  libzmqpp-static.a  libzmqpp.so  zmqpp-test-runner  zmqpp_export.h
[root@68b6df3587f7 build]# ls -lh
total 4.7M
-rw-r--r-- 1 root root  17K Apr 20 11:39 CMakeCache.txt
drwxr-xr-x 7 root root 4.0K Apr 20 11:44 CMakeFiles
-rw-r--r-- 1 root root  443 Apr 20 11:39 CTestTestfile.cmake
-rw-r--r-- 1 root root  43K Apr 20 11:41 Makefile
-rw-r--r-- 1 root root 3.1K Apr 20 11:39 cmake_install.cmake
-rw-r--r-- 1 root root 1.8M Apr 20 11:43 libzmqpp-static.a
-rwxr-xr-x 1 root root 929K Apr 20 11:43 libzmqpp.so
-rwxr-xr-x 1 root root 2.0M Apr 20 11:44 zmqpp-test-runner
-rw-r--r-- 1 root root  983 Apr 20 11:39 zmqpp_export.h

cmake -DZEROMQ_LIBRARY_STATIC=1 .. orcmake -DZEROMQ_LIBRARY_STATIC="" .. Is this correct?

This is cppzmq, zmqpp is a different library.

This is cppzmq, zmqpp is a different library.

my bad.