summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Darwin-Initialize.cmake
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2019-07-24 13:55:22 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-12-09 13:55:48 (GMT)
commit777d3649139c588b834007dc7d3422bc9defb900 (patch)
tree4e3e649f1a84d951b60ab4f39452a01d9b18c193 /Modules/Platform/Darwin-Initialize.cmake
parent2c7aeaf47bc6a2c9a63d2800a5ea247559a58a7e (diff)
downloadCMake-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.cmake2
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