Skip to content

Commit

Permalink
fix linking on macOS with Homebrew and different OpenSSL versions
Browse files Browse the repository at this point in the history
  • Loading branch information
linderd authored Mar 6, 2024
1 parent a0fc2e0 commit f376866
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
if (HOMEBREW AND CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "arm64")
include_directories("/opt/homebrew/include")
link_directories("/opt/homebrew/lib")
include_directories("/opt/homebrew/opt/openssl@1.1/include")
link_directories("/opt/homebrew/opt/openssl@1.1/lib")
include_directories("/opt/homebrew/opt/openssl/include")
link_directories("/opt/homebrew/opt/openssl/lib")
else()
include_directories("/usr/local/opt/openssl@1.1/include")
link_directories("/usr/local/opt/openssl@1.1/lib")
include_directories("/usr/local/opt/openssl/include")
link_directories("/usr/local/opt/openssl/lib")
endif()
set(HAVE_VROUTE ON)
elseif(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
Expand Down

0 comments on commit f376866

Please sign in to comment.