Skip to content

Commit

Permalink
fix new MacOS CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hggq committed Apr 29, 2024
1 parent d8cedf5 commit 06b84dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ else ()

if(USE_STANDALONE_ASIO)
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
set(ASIO_PATH "/usr/local/opt/asio/include" "/usr/local/include" ${CMAKE_CURRENT_SOURCE_DIR}/asio)
set(ASIO_PATH "/usr/local/opt/asio/include" "/usr/local/include" "/opt/homebrew/opt/asio" ${CMAKE_CURRENT_SOURCE_DIR}/asio)
else()
set(ASIO_PATH ${CMAKE_CURRENT_SOURCE_DIR}/asio "/usr/include")
endif()
Expand Down Expand Up @@ -488,10 +488,12 @@ endif()
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
if (IS_DIRECTORY "/usr/local/opt/brotli/lib")
set(BROTLI_ROOT_DIR "/usr/local/opt/brotli/lib")
INCLUDE_DIRECTORIES("/usr/local/opt/brotli/include")
endif()
# set(BROTLI_ROOT_DIR "/usr/local/opt/brotli/lib")
if (IS_DIRECTORY "/opt/homebrew/opt/brotli/lib")
set(BROTLI_ROOT_DIR "/opt/homebrew/opt/brotli/lib")
INCLUDE_DIRECTORIES("/opt/homebrew/opt/brotli/include")
endif()
else()
set(BROTLI_ROOT_DIR "${sys_so_path}")
Expand Down

0 comments on commit 06b84dc

Please sign in to comment.