cmake - osx/mac - openssl brew

后端 未结 4 1414
独厮守ぢ
独厮守ぢ 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 01:03

    As of late 2016 this works for me:

    In CMakeLists.txt:

    find_package(openssl REQUIRED)
    

    Run cmake like this:

    cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl .
    

提交回复
热议问题