Issue with accepting eclipse-paho-mqtt-c in cmake
luminarei23 opened this issue · 2 comments
Describe the bug
Hi i have an issue after deploying the paho-mqtt-c in ubuntu i builded source with cmake and make then generated the eclipse-paho-mqtt-c files but when i try to include directory "eclipse-paho-mqtt-c::paho-mqtt3as" i am getting this error:
" Could not find a configuration file for package "eclipse-paho-mqtt-c" that
is compatible with requested version "".
The following configuration files were considered but not accepted:
/usr/local/lib/cmake/eclipse-paho-mqtt-c/eclipse-paho-mqtt-cConfig.cmake, version: 1.3.13 (64bit)
"
i tried to set the find_package to latest version (1.3.13) but it didn't helped. Worth mentioning that i use my cmakelists to build for RPI Pico W. i would appreciate any hints because i already made a full circle building from source -> static linking -> break -> building from source and i can't overcome this issue.
** Environment (please complete the following information):**
- OS: Ubuntu WSL2
CmakeLists.TXT
I'm not a CMake expert, so I'm not sure how to answer this, I haven't used this project as a package itself. @fpagliughi any help?
Apologies, I just saw this...
I'm not sure what the issue might be. I will mention that there is no version specified for the library in the CMake files, in the currently release version (v1.3.13 and earlier). That has been fixed in the version sitting in the develop branch, but has not been released yet.
But you're not requesting a specific version of this library in your CMake file that you posted. If you did, I would guess, that might cause the problem - meaning if you specified a version number in find_package().
Does C11 have different linkage requirements? I see a set(CMAKE_C_STANDARD 11)
Sorry, I'm not sure. Just throwing out some ideas.