Skip to content

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

@umlaeute

Description

@umlaeute

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions