Skip to content

[question] Extend CMAKE_MODULE_PATH/CMAKE_PREFIX_PATH at consumers #4004

Closed
@aagor

Description

@aagor

What is your question?

Hi,

I want to package some CMake build scripts in a conan package.
For include(some-build-script.cmake) to work at consumers of this package, they must add the path of the CMake scripts to its CMAKE_PREFIX_PATH / CMAKE_MODULE_PATH.

I have not seen a way to conveniently add something like this.
The attributes that can be set inside package_info() don't cover this case.

Have I missed something?
What's the best solution for this problem?

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions