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

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Conversation

7FM
Copy link
Contributor

@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
@reo7sp reo7sp marked this pull request as ready for review June 10, 2024 21:43
@reo7sp reo7sp merged commit a38e1b2 into reo7sp:master Jun 10, 2024
1 check passed
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