How to build & install cppzmq without sudo

In our previous post How to build & install libzmq without sudo we highlighted how to install ZeroMQ to a custom location without requiring root access.

In this post, we will show you how to build & install cppzmq without requiring root access.

git clone -b v4.10.0 https://github.com/zeromq/cppzmq.git
cd cppzmq
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/usr
make -j$(nproc) install