diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2019-07-24 13:55:22 (GMT) |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2019-12-09 13:55:48 (GMT) |
commit | 777d3649139c588b834007dc7d3422bc9defb900 (patch) | |
tree | 4e3e649f1a84d951b60ab4f39452a01d9b18c193 /Modules/Platform/Darwin-Initialize.cmake | |
parent | 2c7aeaf47bc6a2c9a63d2800a5ea247559a58a7e (diff) | |
download | CMake-777d3649139c588b834007dc7d3422bc9defb900.zip CMake-777d3649139c588b834007dc7d3422bc9defb900.tar.gz CMake-777d3649139c588b834007dc7d3422bc9defb900.tar.bz2 |
Use xcrun instead of xcodebuild for resolving SDK path
It's much cheaper to run.
Diffstat (limited to 'Modules/Platform/Darwin-Initialize.cmake')
-rw-r--r-- | Modules/Platform/Darwin-Initialize.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Darwin-Initialize.cmake b/Modules/Platform/Darwin-Initialize.cmake index 2d797f6..f4e8133 100644 --- a/Modules/Platform/Darwin-Initialize.cmake +++ b/Modules/Platform/Darwin-Initialize.cmake @@ -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 |