Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not override the default installation path to /usr #605

Open
umlaeute opened this issue Mar 12, 2023 · 0 comments
Open

Do not override the default installation path to /usr #605

umlaeute opened this issue Mar 12, 2023 · 0 comments

Comments

@umlaeute
Copy link

on un*x-systems, cmake --install will install to /usr by default:

set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH

i think this is really harmful, as the expected place is /usr/local, and on typical Linux distributions /usr is reserved for package-manager-installed software.

Also, there might be different permissions setup of installing to /usr rather than to /usr/local.
E.g. on macOS, a simplecmake --install (of Servus, which uses the Eyescale/CMake snippets) fails, because we cannot just install to /usr/share (even when run with sudo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant