Azure / azure-uamqp-c

AMQP library for C
Other
60 stars 63 forks source link

Unable to use find_package #410

Closed alseambusher closed 3 years ago

alseambusher commented 3 years ago

Hi folks,

I was able to install the library on my machine and was trying to use it in find_package as follows:

find_package(uamqp REQUIRED CONFIG)

But I get the following error:

  CMake Error at CMakeLists.txt:9 (find_package):
    Found package configuration file:

      /usr/local/cmake/uamqpConfig.cmake

    but it set uamqp_FOUND to FALSE so package "uamqp" is considered to be NOT
    FOUND.  Reason given by package:

    The following imported targets are referenced, but are missing:
    aziotsharedutil

I have this file installed /usr/local/lib/libaziotsharedutil.a. Can someone help me debug this?

alseambusher commented 3 years ago

This got resolved by doing this:

find_package(azure_c_shared_utility REQUIRED CONFIG)
find_package(uamqp REQUIRED CONFIG)