Skip to content

Don't assume prefix is either /usr or /usr/local #349

Open
@intractabilis

Description

@intractabilis

if("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr" OR "${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr/local")

A prefix can be anything, not necessarily either /usr or /usr/local. For example, it can be a Python virtual environment, with the proper bin, lib, and lib/cmake inside. The installation must proceed with the installation to these directories, not to the prefix root to the utter surprise of the user.

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