I use the following cmake commands
# Search OpenSSL find_package(PkgConfig REQUIRED) pkg_search_module(OPENSSL REQUIRED openssl) if( OPENSSL_FOUND ) include_directories(${OPENSSL_INCLUDE_DIRS}) message(STATUS "Using OpenSSL ${OPENSSL_VERSION}") else()
it works on linux and on Mac, but on Mac it uses an osx-sent libssl - which generates a lot of obsolescence warnings, for example. 'SSL_library_init' is deprecated: first deprecated in OS X 10.7"
using brew I have already installed a new one - openssl-offical - libssl - how can I tell pkg_search_module in cmake to find and use the brew version?
considers
source share