summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-02-01 19:16:30 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-02-01 19:16:30 (GMT)
commitd421a433a89064926ae6aad532850b8bed113562 (patch)
tree7c622709c71e331058dd2c4c8d64cfb9bbd9a119 /Modules/Platform
parent4f1e1fe7821da7d5af17d18f031f72daa05c89e1 (diff)
downloadCMake-d421a433a89064926ae6aad532850b8bed113562.zip
CMake-d421a433a89064926ae6aad532850b8bed113562.tar.gz
CMake-d421a433a89064926ae6aad532850b8bed113562.tar.bz2
Strip trailing space from xcode-select output (#10723)
Otherwise, subsequent use of the output does not work as intended.
Diffstat (limited to 'Modules/Platform')
-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)