llvm.org GIT mirror llvm / 3ada6da
[CMake] Minor fix to regex in r279152 The third version component is optional in Xcode's version spew, so we need to make it optional in the regex. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279153 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 3 years 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][.][0-9])" version_match ${xcodebuild_version})
51 string(REGEX MATCH "Xcode ([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})