Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Fix libraw definitions (again) #4588

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Jan 6, 2025

Fixes #4586
Replaces #4587

Fixes 4586
Replaces 4587

Signed-off-by: Larry Gritz <[email protected]>
@lgritz
Copy link
Collaborator Author

lgritz commented Jan 6, 2025

@OgreTransporter

@OgreTransporter
Copy link

This is not necessary in this way. If the definitions are added via COMPILE_OPTIONS, -D must be specified because target_compile_options is used in the background which adds pure compiler commands. If the definitions are added via DEFINITIONS, -D does not have to be specified because target_compile_definitions is used in the background, which automatically adds -D if necessary.

@lgritz
Copy link
Collaborator Author

lgritz commented Jan 7, 2025

Oh, I see now. The libraw definitions aren't really just "definitions" (in the preprocessor symbol sense), they may have compiler flags mixed in.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz
Copy link
Collaborator Author

lgritz commented Jan 7, 2025

Amended the PR.

@OgreTransporter
Copy link

The libraw definitions aren't really just "definitions" (in the preprocessor symbol sense), they may have compiler flags mixed in.

This depends on the platform and the compiler. In my MSVC version of libraw, no flags are set in the package, but this can be different depending on the build options.

The PR should fix that problem. Thanks!

@lgritz
Copy link
Collaborator Author

lgritz commented Jan 8, 2025

Yeah, it's obviously rare. I'm not actually sure what combination of factors makes it have any extra compile flags, but it obviously did for somebody to prompt the PR that started all this.

@lgritz lgritz merged commit d50caee into AcademySoftwareFoundation:main Jan 8, 2025
27 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Jan 13, 2025
@lgritz lgritz deleted the lg-rawoptions branch January 13, 2025 21:01
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.

[BUG] Build issue with libraw
2 participants