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

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

Conversation

agruzdev
Copy link

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.

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.

1 participant