Skip to content

cmake: respect explicit install prefix#68

Open
iillyyaa wants to merge 1 commit intosierrafoxtrot:masterfrom
iillyyaa:respect-explicit-install-prefix
Open

cmake: respect explicit install prefix#68
iillyyaa wants to merge 1 commit intosierrafoxtrot:masterfrom
iillyyaa:respect-explicit-install-prefix

Conversation

@iillyyaa
Copy link

@iillyyaa iillyyaa commented Jan 2, 2024

If CMAKE_INSTALL_PREFIX was supplied externally, use it. This follows the pattern suggested by cmake documentation in:
https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT.html

I took the liberty of removing (rather than fixing) the commented out line of code, because that reduces the testing surface I needed to cover. I hope that is acceptable.

The original motivation for this fix is that srecord is packaged in yocto project's meta-openembedded layer, and its ignoring of the install prefix prevents it from staging correctly into the destination sysroot.

This addresses Issue #65

If CMAKE_INSTALL_PREFIX was supplied externally, use it.  This follows
the pattern suggested by cmake documentation in:
https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT.html
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.

1 participant