cmake - osx/mac - openssl brew

后端 未结 4 1413
独厮守ぢ
独厮守ぢ 2021-02-06 00:24

I am using the following cmake commands

# Search OpenSSL
find_package(PkgConfig REQUIRED)
pkg_search_module(OPENSSL REQUIRED openssl)

if( OPENSSL_FOUND )

    in         


        
4条回答
  •  时光取名叫无心
    2021-02-06 00:54

    ok got it working :)

    brew upgrade openssl
    brew link --force openssl
    pkg-config --modversion openssl
    #1.0.2
    

    removed the cmake build folder and rerun the cmake .. and the above macro now finds the 1.0.2 libssl :)

提交回复
热议问题