Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass CMAKE_PREFIX_PATH to cfe targets to allow for usage of Exported CMake targets from outside of the build tree #2605

Closed
renn0xtek9 opened this issue Sep 24, 2024 · 0 comments · Fixed by #2606

Comments

@renn0xtek9
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I am developing a flight software.
I clone the cFS repository inside my git repository.
Libraries that are built outside of the build tree of the cFS itself are exported See CMake Export command.
This create a file "mylibraryConfig.cmake" that will be place in a given folder.

To correctly find and import mylibrary within applications under the cFS repository I need to tell the cFS build tree about this folder using the CMAKE_PREFIX_PATH variable

Describe the solution you'd like
The propose solutions would be to simply pass this variable form the Makefile and through the CMake command.

Describe alternatives you've considered
Alternative solutions:

  • Place mylibrary directly into the build tree of the cFS itself. This is not really practicable if I we want to use 3rd party library and / or if mylibrary is meant to be middelware agnostic with integrations into several middelware (cFS, ROS etc.)

Additional context
I can provide with an example repository with needed.

Requester Info
No company, pure individual

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant