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

flac: ignore DLL_EXPORT define in export.h #23680

Merged
merged 2 commits into from
May 21, 2024

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Apr 20, 2024

The Windows export header checks both FLAC__NO_DLL and DLL_EXPORT, but the latter overly broadly named define is only set by autotools and we are using the CMake to build the project.

Fixes the unresolved external symbol __imp_FLAC__stream_decoder_new etc errors due to conflicting DLL_EXPORT define being set in

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 2 (b1b7f14eb13c7dcfdc7ea57cd0be4528baadca0c):

  • flac/1.3.3:
    All packages built successfully! (All logs)

  • flac/1.4.3:
    All packages built successfully! (All logs)

  • flac/1.4.2:
    All packages built successfully! (All logs)


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 2 (b1b7f14eb13c7dcfdc7ea57cd0be4528baadca0c):

  • flac/1.4.2:
    All packages built successfully! (All logs)

  • flac/1.4.3:
    All packages built successfully! (All logs)

  • flac/1.3.3:
    All packages built successfully! (All logs)

@@ -56,6 +56,7 @@ def generate(self):
tc.variables["BUILD_EXAMPLES"] = False
tc.variables["BUILD_DOCS"] = False
tc.variables["BUILD_TESTING"] = False
tc.cache_variables["CMAKE_POLICY_DEFAULT_CMP0077"] = "NEW"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What specific error is it fixing? There is no information in the description.

Copy link
Contributor Author

@valgur valgur May 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added it just to be safe. It's almost boilerplate, so I did not see a need to point it out.

The project uses CMake version < 3.12. Without setting the policy, any option() values in CMakeLists.txt might not be overridden by Conan. Even if it has worked ok without it so far, it's bug-prone and can easily become an issue in new releases. It also tends to cause issues silently, if it does.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense, found similar fix in other places.

@AbrilRBS AbrilRBS self-assigned this May 21, 2024
Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving after going over this with @uilianries, thanks!

@conan-center-bot conan-center-bot merged commit f0684ab into conan-io:master May 21, 2024
23 checks passed
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.

4 participants