Skip to content

Commit

Permalink
build(macos): skip link of nonexistent directories
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed May 13, 2024
1 parent a5bbf36 commit 694ad08
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions cmake/compile_definitions/macos.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

add_compile_definitions(SUNSHINE_PLATFORM="macos")

link_directories(/opt/local/lib)
link_directories(/usr/local/lib)
link_directories(/opt/homebrew/lib)
set(MACOS_LINK_DIRECTORIES
/opt/homebrew/lib
/opt/local/lib
/usr/local/lib)

foreach(DIR ${MACOS_LINK_DIRECTORIES})
if(EXISTS ${DIR})
link_directories(${DIR})
endif()
endforeach()

ADD_DEFINITIONS(-DBOOST_LOG_DYN_LINK)

list(APPEND SUNSHINE_EXTERNAL_LIBRARIES
Expand Down

0 comments on commit 694ad08

Please sign in to comment.