mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
Use xcrun instead of xcodebuild for resolving SDK path
It's much cheaper to run.
This commit is contained in:
committed by
Cristian Adam
parent
2c7aeaf47b
commit
777d364913
@@ -136,7 +136,7 @@ if(CMAKE_OSX_SYSROOT)
|
||||
else()
|
||||
# Transform the sdk name into a path.
|
||||
execute_process(
|
||||
COMMAND xcodebuild -sdk ${CMAKE_OSX_SYSROOT} -version Path
|
||||
COMMAND xcrun -sdk ${CMAKE_OSX_SYSROOT} --show-sdk-path
|
||||
OUTPUT_VARIABLE _stdout
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_VARIABLE _stderr
|
||||
|
||||
Reference in New Issue
Block a user