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

Let the static playlist library depend on the static symbols of the projectM library #871

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sgorpi
Copy link

@sgorpi sgorpi commented Feb 8, 2025

Situation: If you're compiling a program with CMake (on windows, using msys2) using BUILD_SHARED_LIBS=OFF, and your program/target depends on "libprojectM::playlist", then CMake will automatically add the static targets for "libprojectM::projectM". Without the changes in this PR, the linker may then complain about missing symbols like __imp__projectm_set_preset_switch_requested_event_callback, as the export defines were not set to remove the declspec.

This PR fixes compilation with static linking of the client to the projectM playlist library.

Copy link
Member

@kblaschke kblaschke left a comment

Choose a reason for hiding this comment

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

You're right, the object library should also have that definition set!

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.

2 participants