sudo was required for for pkg-config libzmq build as cppzmq could not
find not installed pkg-config libzmq.
Solution: cppzmq to use cmake prefix paths for pkg config paths as well.
cppzmq does not follow other zeromq projects where draft builds are
enabled by default for git repository.
Solution: revert back code where ENABLE_DRAFTS in set to ON if .git
directory exists
It seems to be a problem with cppzmq where FindZeroMQ.cmake is not
found without installing cppzmq.
Solution: install cppzmq for pkg-config build type.
It seems that there is a bug in libzmq 4.2.0 cmake configs that prevents
linking to it without installing.
Solution: disable libzmq 4.2.0 for cmake builds
libzmq build with default settings now which build all the tests and
performance tools. This is not required for cppzmq build and slows down
it only.
Solution: disable tests build for libzmq and make it release only.
There is no need to install libzmq into the system.
Out of source build can be used later to build cppzmq.
Solution: remove install steps and rely more on cmake to handle
directory creation.