Skip to content

CMAKE_PREFIX_PATH to non-sudo install instructions - #38

Merged
mmmarinho merged 1 commit into
mmmarinho:mainfrom
juanjqo:main
Sep 18, 2026
Merged

mmmarinho merged 1 commit into
mmmarinho:mainfrom
juanjqo:main

Conversation

@juanjqo

@juanjqo juanjqo commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Hi @mmmarinho,

This PR adds CMAKE_PREFIX_PATH to the ~/opt setup instructions, alongside the existing LD_LIBRARY_PATH/LIBRARY_PATH/CPATH. Those three aren't consulted by CMake's find_package(), so a package installed to a non-default prefix like ~/opt was invisible to any downstream project's find_package( REQUIRED) without this.

For instance, when installing unitree_drivers

This command fails to find the library

find_package(unitree_drivers REQUIRED)

Also switched the existing echo lines to single quotes, so $VAR is written literally to ~/.bashrc and re-expands correctly on every shell startup, instead of being baked in at the moment the instructions are run.

Kind regards,

Juancho

@mmmarinho

Copy link
Copy Markdown
Owner

Thank you, @juanjqo.

@mmmarinho
mmmarinho merged commit 8c948e8 into mmmarinho:main Sep 18, 2026
2 checks passed
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 this pull request may close these issues.

2 participants