Skip to content

Commit

Permalink
Re-check for OpenSSL on macOS with homebrew prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferroin committed Apr 26, 2024
1 parent de8eb34 commit d3984e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,8 @@ if(NOT OPENSSL_FOUND)
message(FATAL_ERROR "OpenSSL (or LibreSSL) is required for building Netdata, but could not be found.")
endif()

set(OPENSSL_INCLUDE_DIRS "${BREW_OPENSSL_PREFIX}/include")
set(OPENSSL_CFLAGS_OTHER "")
set(OPENSSL_LDFLAGS "-L${BREW_OPENSSL_PREFIX}/lib;-lssl;-lcrypto")
set(ENV{PKG_CONFIG_PATH} "$<$<BOOL:$ENV{PKG_CONFIG_PATH}}>:$ENV{PKG_CONFIG_PATH}}:>${BREW_OPENSSL_PREFIX}/lib/pkgconfig")
pkg_check_modules(OPENSSL openssl REQUIRED)
else()
message(FATAL_ERROR "OpenSSL (or LibreSSL) is required for building Netdata, but could not be found.")
endif()
Expand Down

0 comments on commit d3984e9

Please sign in to comment.