Skip to content

Is it intended that C++ headers are in e.g. /usr/include/cucumber/cucumber/messages/ ? #267

Closed
@musicinmybrain

Description

@musicinmybrain

👓 What did you see?

In a fresh checkout:

$ cd cpp/
$ cmake -S. -Bbuild
$ cmake --build build
$ DESTDIR=foo cmake --install build
$ find foo/ -name all.hpp
foo/usr/local/include/cucumber/cucumber/messages/all.hpp

✅ What did you expect to see?

I’m surprised that headers aren’t installed in e.g. /usr/include/cucumber/messages/ rather than /usr/include/cucumber/cucumber/messages/. Is this intentional?

📦 Which tool/library version are you using?

Current main, 9114562.

🔬 How could we reproduce it?

See What did you see?, above.

📚 Any additional context?

The additional cucumber/ seems to be handled in cucumber_messages-targets.cmake, which has

set_target_properties(cucumber::messages PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include/cucumber"
  […]
)

but the cucumber/cucumber still seems like it might have been an accident.

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