报错信息如下
$ cmake .. -DEVENT_DISABLE_OPENSSL=ON
CMake Warning at CMakeLists.txt:663 (message):
Cannot check if kqueue works with pipes when crosscompiling, use
EVENT__FORCE_KQUEUE_CHECK to be sure (this requires manually running a test
program on the cross compilation target)
CMake Error at /usr/local/Cellar/cmake/3.22.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY
OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.22.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/local/Cellar/cmake/3.22.1/share/cmake/Modules/FindOpenSSL.cmake:574 (find_package_handle_standard_args)
CMakeLists.txt:844 (find_package)
解决办法
报错原因是因为 Mac 电脑没有安装 openssh,执行如下命令安装即可
brew install openssh
End~