Skip to content

CMakeLists.txt assumes backscrub build directory layout #3

@ali1234

Description

@ali1234

The CMakeLists.txt allows to override the BACKSCRUB variable to specify the path to the backscrub repository:

if(NOT DEFINED BACKSCRUB)
set(BACKSCRUB ../backscrub)
endif()

Then it does two things with this variable. It sets LIBBACKSRUB_INCLUDE_DIR, which needs to point to the source repository:

set(LIBBACKSCRUB_INCLUDE_DIR ${BACKSCRUB})

and also it includes a file from the build directory:

include(${BACKSCRUB}/build/BackscrubTargets.cmake)

Here the build directory is assumed to be within the source repository with no way to override. This is not necessarily the case. The cmake build directory can be anywhere, and in the case of building a snap package, it will be along side the source, not inside it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions