Open steinlec opened 2 years ago
I have the need to compile mosquitto 2.0.15 with cJSON on Ubuntu 18.04. In this context I use cJSON from source, compile it, and install it to an image directory with
make DESTDIR=<...> install
. While doing this, the file ./cmake/FindcJSON.cmake is not able to find cJSON in the image directory, even if I setexport CJSON_DIR=<...>
. But if I modify the file ./cmake/FindcJSON.cmake in the corresponding way, everything works fine.
@steinlec I'm trying to compile mosquitto with cJSON but cJSON is not found. I looked into installing cJSON but there are many libs with that name. Which version of cJSON are you using?
@eye-c I am using https://github.com/DaveGamble/cJSON in version 1.7.15.
I have the need to compile mosquitto 2.0.15 with cJSON on Ubuntu 18.04. In this context I use cJSON from source, compile it, and install it to an image directory with
make DESTDIR=<...> install
. While doing this, the file ./cmake/FindcJSON.cmake is not able to find cJSON in the image directory, even if I setexport CJSON_DIR=<...>
. But if I modify the file ./cmake/FindcJSON.cmake in the corresponding way, everything works fine.Maybe this patch would be helpful.