fatal error: 'openssl/conf.h' file not found

使用clion ide,CMakeLists.txt,

include_directories(BEFORE /opt/homebrew/opt/openssl@1.1/include)        link_directories(/opt/homebrew/opt/openssl/lib)

 

参考:

https://stackoverflow.com/questions/43415106/openssl-conf-h-file-not-found-error-on-macos-sierra