In general you can consult your log file CMakeOutput.log
Maybe configure it without openssl?
./configure -- -DCMAKE_USE_OPENSSL=OFF
ref: https://discourse.cmake.org/t/how-to-compile-dcmake-use-openssl-off/1271