Skip to content

Add option for use system libappimage #188

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

Closed

Conversation

smarttowel
Copy link

No description provided.

Copy link
Member

@TheAssassin TheAssassin left a comment

Choose a reason for hiding this comment

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

You'd have to make sure libappimage is installed in some way.

add_subdirectory(libappimage EXCLUDE_FROM_ALL)
endif()
endif()
Copy link
Member

Choose a reason for hiding this comment

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

Blank line removed at end of file for no apparent reason.

Copy link
Member

@TheAssassin TheAssassin left a comment

Choose a reason for hiding this comment

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

I am reworking the dependencies management at the moment. I will either merge your PR in the process, or write my own fix. libappimage is not the only external library, same goes for zsync2 for instance.

Thanks for bringing this up.

add_subdirectory(libappimage EXCLUDE_FROM_ALL)
set(APPIMAGE_LIB libappimage_shared PARENT_SCOPE)
else()
find_library(APPIMAGE_LIB appimage)
Copy link
Member

Choose a reason for hiding this comment

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

You should be able to find libappimage using find_package, since it generates an exported targets config.

@smarttowel
Copy link
Author

I agree about similar options for other external libraries, but I need only system libappimage at this moment.

@TheAssassin
Copy link
Member

Fixed in 7593d5a. Just set -DUSE_SYSTEM_LIBAPPIMAGE=ON.

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