From f9b18538ca052817b3e618dff3d7c860ca7dd5cd Mon Sep 17 00:00:00 2001 From: Andrea Barberio Date: Thu, 29 Aug 2024 12:55:14 +0200 Subject: [PATCH] Fixed build on macos Signed-off-by: Andrea Barberio --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 948104c..404d4cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,7 +72,9 @@ target_include_directories(dublintraceroute PUBLIC ${JSONCPP_INCLUDE_DIRS} ${TIN if(APPLE) # with macOS Mojave /usr/local/{include,lib} have to be specified explicitly target_include_directories(dublintraceroute PUBLIC /usr/local/include) - target_link_libraries(dublintraceroute /usr/local/lib) + target_include_directories(dublintraceroute PUBLIC /opt/homebrew/include) + target_link_directories(dublintraceroute PUBLIC /usr/local/lib) + target_link_directories(dublintraceroute PUBLIC /opt/homebrew/lib) endif(APPLE) #set_property(TARGET dublintraceroute PROPERTY CXX_STANDARD 11)