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

Added extra CMAKE flags for linking plugins statically #1452

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

agruzdev
Copy link
Contributor

Currently for statically linked backends there are used only two variables: LIBDE265_INCLUDE_DIR and LIBDE265_LIBRARY, for example. This is not enough for multiconfig build systems, like MSVC, where we need to provide both 'debug' and 'release' libraries.

This commit adds support of optional cmake variables:

  • plugin_DEBUG_LIBRARY - if not empty, then target_link_libraries will be called twice:
target_link_libraries(heif PRIVATE debug ${${varName}_DEBUG_LIBRARY})
target_link_libraries(heif PRIVATE optimized ${${varName}_LIBRARIES})
  • plugin_LINK_DIRS - willl be passed to target_link_directories( )

This change is backward compatible. In case if the new variables empty, behaviour is not changed.

@farindk farindk merged commit 4ab2a22 into strukturag:master Feb 18, 2025
35 checks passed
@farindk
Copy link
Contributor

farindk commented Feb 18, 2025

Thanks

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