Merge topic 'fix-10723-non-dev-xcode'
d421a43
Strip trailing space from xcode-select output (#10723)
This commit is contained in:
commit
11f55fff8f
|
@ -68,7 +68,8 @@ IF(NOT _CMAKE_OSX_SDKS)
|
||||||
FIND_PROGRAM(CMAKE_XCODE_SELECT xcode-select)
|
FIND_PROGRAM(CMAKE_XCODE_SELECT xcode-select)
|
||||||
IF(CMAKE_XCODE_SELECT)
|
IF(CMAKE_XCODE_SELECT)
|
||||||
EXECUTE_PROCESS(COMMAND ${CMAKE_XCODE_SELECT} "-print-path"
|
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/*")
|
FILE(GLOB _CMAKE_OSX_SDKS "${OSX_DEVELOPER_ROOT}/SDKs/*")
|
||||||
ENDIF(CMAKE_XCODE_SELECT)
|
ENDIF(CMAKE_XCODE_SELECT)
|
||||||
ENDIF(NOT _CMAKE_OSX_SDKS)
|
ENDIF(NOT _CMAKE_OSX_SDKS)
|
||||||
|
|
Loading…
Reference in New Issue