Skip to content

fix(build): fix EMBEDPLUGINS=0, make many build options env-override - #5272

Merged
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-embedplugins
Jul 11, 2026
Merged

lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
lgritz:lg-embedplugins

Conversation

@lgritz

@lgritz lgritz commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Change several build-time options from option() to our set_option(), which mostly has the effect of allowing them to be overridden by environment variables of the same name, which is really handy for CI variants.

In the process, realized that we had some real problems with handling of EMBEDPLUGINS=0, it probably hasn't worked properly for years and went unnoticed because the one CI job variant that was trying to test EMBEDPLUGINS=0 actually was not because it was trying to do it by setting the environment variable, unaware that it could not be used to set the option until this patch. So there is a bit of cmake and linkage fixing that needed to be done to get it squared away.

Assisted-by: Claude Code / opus-4.8

Change several build-time options from `option()` to our
`set_option()`, which mostly has the effect of allowing them to be
overridden by environment variables of the same name, which is really
handy for CI variants.

In the process, realized that we had some real problems with handling
of EMBEDPLUGINS=0, it probably hasn't worked properly for years and
went unnoticed because the one CI job variant that was trying to test
EMBEDPLUGINS=0 actually *was not* because it was trying to do it by
setting the environment variable, unaware that it could not be used to
set the option until this patch. So there is a bit of cmake and
linkage fixing that needed to be done to get it squared away.

Assisted-by: Claude Code / opus-4.8

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz

lgritz commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator Author

Any concerns here?

@lgritz
lgritz merged commit d33cb2a into AcademySoftwareFoundation:main Jul 11, 2026
60 checks passed
@lgritz
lgritz deleted the lg-embedplugins branch July 11, 2026 05:57
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Jul 22, 2026
…cademySoftwareFoundation#5272)

Change several build-time options from `option()` to our `set_option()`,
which mostly has the effect of allowing them to be overridden by
environment variables of the same name, which is really handy for CI
variants.

In the process, realized that we had some real problems with handling of
EMBEDPLUGINS=0, it probably hasn't worked properly for years and went
unnoticed because the one CI job variant that was trying to test
EMBEDPLUGINS=0 actually *was not* because it was trying to do it by
setting the environment variable, unaware that it could not be used to
set the option until this patch. So there is a bit of cmake and linkage
fixing that needed to be done to get it squared away.

Assisted-by: Claude Code / opus-4.8

Signed-off-by: Larry Gritz <lg@larrygritz.com>
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