Skip to content

Add CI test to validate "cmake --install .. --prefix <path>#2333

Merged
cary-ilm merged 3 commits intoAcademySoftwareFoundation:mainfrom
cary-ilm:prefix-ci.2
Apr 10, 2026
Merged

Add CI test to validate "cmake --install .. --prefix <path>#2333
cary-ilm merged 3 commits intoAcademySoftwareFoundation:mainfrom
cary-ilm:prefix-ci.2

Conversation

@cary-ilm
Copy link
Copy Markdown
Member

@cary-ilm cary-ilm commented Apr 1, 2026

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_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.

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>
@cary-ilm cary-ilm merged commit 44bf865 into AcademySoftwareFoundation:main Apr 10, 2026
37 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant