Skip to content

Prefix is doubled in cmake INTERFACE_INCLUDE_DIRECTORIES #18

@doronbehar

Description

@doronbehar

On NixOS, we are having trouble with the file written to $prefix/share/c++utilities/cmake/c++utilitiesTargets.cmake. See this output in that file:

set_target_properties(c++utilities PROPERTIES
  INTERFACE_COMPILE_DEFINITIONS "CPP_UTILITIES_USE_NATIVE_FILE_BUFFER;CPP_UTILITIES_STATIC"
  INTERFACE_INCLUDE_DIRECTORIES "/nix/store/196qm6alw4a5v4ifg2h7n7yn3c2gry5f-cpp-utilities-5.2.0//nix/store/196qm6alw4a5v4ifg2h7n7yn3c2gry5f-cpp-utilities-5.2.0/include"
)

As you can see, the prefix is written twice from some reason. This issue makes the build for qtutilities and syncthingtray fail.

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