最后通过 export 设置环境变量解决问题。
export OPENSSL_ROOT_DIR=/usr/local/openssl export OPENSSL_LIBRARIES=/usr/local/openssl/lib
参考链接:https://blog.csdn.net/davidullua/article/details/126717060
标签:解决办法,cmake,openssl,OPENSSL,export,usr,local From: https://www.cnblogs.com/visio/p/17401072.html