From f37686630ec278d9dd365a2fa3b1abb6c68e8c09 Mon Sep 17 00:00:00 2001 From: David Linder <19273958+linderd@users.noreply.github.com> Date: Wed, 6 Mar 2024 14:45:19 +0100 Subject: [PATCH] fix linking on macOS with Homebrew and different OpenSSL versions --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 418997f1..2f90a3f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")