Add CI test to validate "cmake --install .. --prefix <path>#2333
Merged
cary-ilm merged 3 commits intoAcademySoftwareFoundation:mainfrom Apr 10, 2026
Merged
Add CI test to validate "cmake --install .. --prefix <path>#2333cary-ilm merged 3 commits intoAcademySoftwareFoundation:mainfrom
cary-ilm merged 3 commits intoAcademySoftwareFoundation:mainfrom
Conversation
With this change, when `configure_install_prefix` is provideed, the CI configures and builds with one install prefix but then overrides that in the install step with an explicit `--prefix <path>`. This validates that the custom prefix takes precedence over the cache. This is done for the matrix builds that test with various settings off, so it's sure to catch both with and without the overriding prefix. The `--install` option is only available in cmake 3.15+, but the OpenEXR supported version of cmake is still 3.14 (so that's what the CI uses), so the CI uses 3.15 for these builds. Signed-off-by: Cary Phillips <cary@ilm.com>
44bf865
into
AcademySoftwareFoundation:main
37 of 38 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds CI validation for the fix in #2326. The CI checks will fail until that PR is merged.
With this change, when
configure_install_prefixis provideed, the CI configures and builds with one install prefix but then overrides that in the install step with an explicit--prefix <path>. This validates that the custom prefix takes precedence over the cache.This is done for the matrix builds that test with various settings off, so it's sure to catch both with and without the overriding prefix.
The
--installoption is only available in cmake 3.15+, but the OpenEXR supported version of cmake is still 3.14 (so that's what the CI uses), so the CI uses 3.15 for these builds.