Skip to content

Commit

Permalink
Guard use of brew command by OSX (#50069)
Browse files Browse the repository at this point in the history
  • Loading branch information
omajid committed Mar 23, 2021
1 parent 49a73e3 commit e279550
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ if(CLR_CMAKE_TARGET_UNIX)
add_compile_options(-Wno-unknown-warning-option)

if (NOT CLR_CMAKE_TARGET_ANDROID)
execute_process(COMMAND brew --prefix OUTPUT_VARIABLE brew_prefix OUTPUT_STRIP_TRAILING_WHITESPACE)
set(ICU_HOMEBREW_INC_PATH "${brew_prefix}/opt/icu4c/include")
if (CLR_CMAKE_TARGET_OSX)
execute_process(COMMAND brew --prefix OUTPUT_VARIABLE brew_prefix OUTPUT_STRIP_TRAILING_WHITESPACE)
set(ICU_HOMEBREW_INC_PATH "${brew_prefix}/opt/icu4c/include")
endif()

find_path(UTYPES_H "unicode/utypes.h" PATHS ${ICU_HOMEBREW_INC_PATH})
if(UTYPES_H STREQUAL UTYPES_H-NOTFOUND)
Expand Down

0 comments on commit e279550

Please sign in to comment.