mirror of
https://github.com/ares-emulator/ares.git
synced 2026-10-11 22:39:55 +00:00
Fix macOS build when show-sdk-platform-version fails
This commit is contained in:
committed by
Luke Usher
parent
af4cbb04f0
commit
2bd312e602
@@ -30,6 +30,15 @@ function(check_sdk_requirements)
|
||||
RESULT_VARIABLE result
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
# Fallback when --show-sdk-platform-version fails but the SDK is installed
|
||||
if(NOT result EQUAL 0)
|
||||
execute_process(
|
||||
COMMAND xcrun --sdk macosx --show-sdk-version
|
||||
OUTPUT_VARIABLE ares_macos_current_sdk
|
||||
RESULT_VARIABLE result
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
endif()
|
||||
if(NOT result EQUAL 0)
|
||||
message(
|
||||
FATAL_ERROR
|
||||
|
||||
Reference in New Issue
Block a user