summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-02-22 19:31:45 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-02-22 19:31:45 (GMT)
commit11f55fff8fc8946535afdd43d16ffe9384c5e1c8 (patch)
treec6e59a815c389338c3db52df048e890242c9dc2a
parent6e450ed7f05e98216bc4ddd9f2c82149603de964 (diff)
parentd421a433a89064926ae6aad532850b8bed113562 (diff)
downloadCMake-11f55fff8fc8946535afdd43d16ffe9384c5e1c8.zip
CMake-11f55fff8fc8946535afdd43d16ffe9384c5e1c8.tar.gz
CMake-11f55fff8fc8946535afdd43d16ffe9384c5e1c8.tar.bz2
Merge topic 'fix-10723-non-dev-xcode'
d421a43 Strip trailing space from xcode-select output (#10723)
-rw-r--r--Modules/Platform/Darwin.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index a99ff4a..c11c8fb 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -68,7 +68,8 @@ IF(NOT _CMAKE_OSX_SDKS)
FIND_PROGRAM(CMAKE_XCODE_SELECT xcode-select)
IF(CMAKE_XCODE_SELECT)
EXECUTE_PROCESS(COMMAND ${CMAKE_XCODE_SELECT} "-print-path"
- OUTPUT_VARIABLE OSX_DEVELOPER_ROOT)
+ OUTPUT_VARIABLE OSX_DEVELOPER_ROOT
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
FILE(GLOB _CMAKE_OSX_SDKS "${OSX_DEVELOPER_ROOT}/SDKs/*")
ENDIF(CMAKE_XCODE_SELECT)
ENDIF(NOT _CMAKE_OSX_SDKS)