This causes that the openssl/opensslconf.h cannot be found in config.h when compiling lib/actions.c while using a cross-compiler and having the openssl library in a non-standard dir.
Adding back ${OPENSSL_INCLUDE_DIR} to the include_directories function fixes this problem.
The PR #3044 introduced a similar problem as in #2160. The
${OPENSSL_INCLUDE_DIR}
include was removed from theCMakeLists.txt
file of thelib
directory: https://github.com/eclipse/mosquitto/commit/a3e5deb95235f64ca6aa5b53cf30d7ca0584c2d8#diff-4803677bd280f4dded52c428e3c8ac6c618508dcabcbe880b68be85897c2ad41L9This causes that the
openssl/opensslconf.h
cannot be found inconfig.h
when compilinglib/actions.c
while using a cross-compiler and having the openssl library in a non-standard dir. Adding back${OPENSSL_INCLUDE_DIR}
to theinclude_directories
function fixes this problem.