Building prefix should not be /usr/local by default without sudo
XVilka opened this issue · 4 comments
XVilka commented
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
topilski commented
Hey, some libraries should be in /usr/local cmake lookup
XVilka commented
For CMake, there’s CMAKE_INSTALL_PREFIX:
$ cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local ..
topilski commented
Cool but not interesting. We have a lot of projects where common library used.