Skip to content

Conversation

@sgorpi
Copy link
Contributor

@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!

@kblaschke kblaschke merged commit 5a31295 into projectM-visualizer:master Feb 27, 2025
9 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.

2 participants