tgockel / zookeeper-cpp

A ZooKeeper client for C++.
http://tgockel.github.io/zookeeper-cpp/
Apache License 2.0
148 stars 40 forks source link

Use CMAKE_INSTALL_PREFIX instead of hardcoded /usr/local install path #109

Closed Jauler closed 4 years ago

Jauler commented 4 years ago

Hey,

CMake has CMAKE_INSTALL_PREFIX variable which defaults /usr/local, but is configurable during cmake configuration stage. I think it would be nice to respect it.

This PR makes deb packages which installs all the files according to CMAKE_INSTALL_PREFIX. The default behaviour is unchanged, because CMAKE_INSTALL_PREFIX defaults to the same /usr/local previously hardcoded.

tgockel commented 4 years ago

Nice, thanks.