mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
Tests: Fix RunCMake.XcodeProject XcodeIOSInstallCombined cases for Xcode 13.0
The output of `otool -vf` now contains additional content that happens to be matched by our architectures regex. Make the regex more strict.
This commit is contained in:
@@ -9,8 +9,8 @@ function(verify_architectures file)
|
||||
return()
|
||||
endif()
|
||||
|
||||
string(REGEX MATCHALL "architecture [^ \n\t]+" architectures ${otool_out})
|
||||
string(REPLACE "architecture " "" actual "${architectures}")
|
||||
string(REGEX MATCHALL "\narchitecture [^ \n\t()]+" architectures ${otool_out})
|
||||
string(REPLACE "\narchitecture " "" actual "${architectures}")
|
||||
list(SORT actual)
|
||||
|
||||
set(expected arm64 armv7 i386 x86_64)
|
||||
|
||||
@@ -9,8 +9,8 @@ function(verify_architectures file)
|
||||
return()
|
||||
endif()
|
||||
|
||||
string(REGEX MATCHALL "architecture [^ \n\t]+" architectures ${otool_out})
|
||||
string(REPLACE "architecture " "" actual "${architectures}")
|
||||
string(REGEX MATCHALL "\narchitecture [^ \n\t()]+" architectures ${otool_out})
|
||||
string(REPLACE "\narchitecture " "" actual "${architectures}")
|
||||
list(SORT actual)
|
||||
|
||||
set(expected armv7 x86_64)
|
||||
|
||||
Reference in New Issue
Block a user