zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.53k stars 2.34k forks source link

CMake build doesn't add library dependencies for openpgm #4569

Open michaelgtodd opened 1 year ago

michaelgtodd commented 1 year ago

Please use this template for reporting suspected bugs or requests for help.

Issue description

CMake build doesn't properly set the library dependencies for openpgm

Environment

  1. mkdir -p build && cd build
  2. cmake -DWITH_OPENPGM=ON ..
  3. make -j8

What's the actual result? (include assertion message & call stack if applicable)

unit tests will fail, and ldd ./lib/libzmq.so yields: linux-vdso.so.1 (0x00007fff7fada000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa757344000) librt.so.1 => /lib64/librt.so.1 (0x00007fa75733a000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fa7571a2000) libm.so.6 => /lib64/libm.so.6 (0x00007fa75701e000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fa757003000) libc.so.6 => /lib64/libc.so.6 (0x00007fa756e3d000) /lib64/ld-linux-x86-64.so.2 (0x00007fa75745f000)

Notably missing libpgm

This looks similar to #2701 , which may have been reintroduced.

What's the expected result?

libpgm is listed properly as a dependency