| 1 |
set(xcProjectFile "${RunCMake_TEST_BINARY_DIR}/ImportMultiArch.xcodeproj/project.pbxproj") |
| 2 |
if(NOT EXISTS "${xcProjectFile}") |
| 3 |
set(RunCMake_TEST_FAILED "Project file ${xcProjectFile} does not exist.") |
| 4 |
return() |
| 5 |
endif() |
| 6 |
|
| 7 |
file(READ ${xcProjectFile} pbxFileContents) |
| 8 |
foreach(config IN ITEMS Debug Release RelWithDebInfo MinSizeRel) |
| 9 |
set(regex "--findconfig-${config}[^ |
| 10 |
]*\\$\\(CURRENT_ARCH\\)") |
| 11 |
if(NOT pbxFileContents MATCHES "${regex}") |
| 12 |
set(RunCMake_TEST_FAILED "$(CURRENT_ARCH) not preserved for config ${config}") |
| 13 |
return() |
| 14 |
endif() |
| 15 |
endforeach() |