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

CMake: add find_package support #293

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

Conversation

7FM
Copy link

@7FM 7FM commented Feb 14, 2024

I am not that familiar with CMake but I managed to add rudimental support to include tgbot-cpp into another CMake project with find_package(TgBot REQUIRED)

However, with the current changes including the library fails with the following message:

  The link interface of target "TgBot::TgBot" contains:

    Boost::system

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

UNLESS one adds find_package(Boost 1.65.1 COMPONENTS system REQUIRED) right before the find_package(TgBot REQUIRED).

@7FM 7FM marked this pull request as draft February 14, 2024 20:54
@7FM 7FM changed the title WIP: CMake: add find_package support CMake: add find_package support Feb 14, 2024
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.

None yet

1 participant