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

Exporting the -static CMake targets when both shared and static libraries built. #1495

Merged

Conversation

fpagliughi
Copy link
Contributor

When just the static library is built, the CMake targets are properly exported (i.e. xxx-static, like eclipse-paho-mqtt-c::paho-mqtt3a-static, etc).

But when both the shared and static libraries are built, only the shared targets are exported. The static ones are not - but should be.

This fixes the issue so that the -static CMake targets are always exported when the static libraries are built.

This problem is causing broken builds for the Paho C++ library. See:
eclipse-paho/paho.mqtt.cpp#500

@icraggs icraggs merged commit 3d7a1a6 into eclipse-paho:develop Jul 1, 2024
6 checks passed
icraggs added a commit that referenced this pull request Jul 13, 2024
Exporting the -static CMake targets when both shared and static libraries built.
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.

3 participants