llvm.org GIT mirror llvm / 5dc174c
[cmake][xcode-toolchain] add support for major Xcode version >= 10 The regex that extracts the Xcode version should support major versions with two digits. rdar://41465184 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335801 91177308-0d34-0410-b5e6-96231b3b80d8 Alex Lorenz 1 year, 1 month ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4848 OUTPUT_STRIP_TRAILING_WHITESPACE
4949 ERROR_FILE /dev/null
5050 )
51 string(REGEX MATCH "Xcode ([0-9]([.][0-9])+)" version_match ${xcodebuild_version})
51 string(REGEX MATCH "Xcode ([0-9][0-9]?([.][0-9])+)" version_match ${xcodebuild_version})
5252 if(version_match)
5353 message(STATUS "Identified Xcode Version: ${CMAKE_MATCH_1}")
5454 set(XCODE_VERSION ${CMAKE_MATCH_1})