fastogt/fastonosql

Building prefix should not be /usr/local by default without sudo

XVilka opened this issue · 4 comments

If you follow https://github.com/fastogt/fastonosql/wiki/Build instructions it by default tries to install into /usr/local on Linux and doesn't asking for sudo.
The best option is to use ~/.local/bin by default if the user is not root: https://unix.stackexchange.com/questions/316765/which-distributions-have-home-local-bin-in-path

Hey, some libraries should be in /usr/local cmake lookup

For CMake, there’s CMAKE_INSTALL_PREFIX:

$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local ..

Cool but not interesting. We have a lot of projects where common library used.