cmake openssl 生成失败
生成azerothcode的时候报错,改成1.x版本就好了,我用的1.1.1。
CMake Error at E:/Soft/CMake326/share/cmake-3.26/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 Crypto
SSL) (found version "3.1.6")
Call Stack (most recent call first):
E:/Soft/CMake326/share/cmake-3.26/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
src/cmake/macros/FindOpenSSL.cmake:559 (find_package_handle_standard_args)
deps/openssl/CMakeLists.txt:17 (find_package)
我已经在cmakegui上配置了OPENSSL_ROOT_DIR和OPENSSL_INCLUDE_DIR,OPENSSL_CRYPTO_LIBRARY的路径,并且也配置到环境变量中,还是没有作用,期间重启过多次电脑。
一开始使用的是3.1.6版本的openssl,怀疑版本太高后边改成3.0.14,还是没有用,但是官方文档写的是大于等于3.x
报错信息里看得出是已经找到openssl路径了,但是为啥报错,找了很久,后边有人说换成1.x版本就好,换了之后直接过了-_-坑爹的官方文档