summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject/XcodeAttributeGenex-check.cmake
blob: 637df0fd7fb39e65b9acc0141c16969acd69ec06 (plain)
1
2
3
4
5
6
7
set(expect "TEST_HOST = \"[^;\"]*Tests/RunCMake/XcodeProject/XcodeAttributeGenex-build/[^;\"/]*/some\"")
file(STRINGS ${RunCMake_TEST_BINARY_DIR}/XcodeAttributeGenex.xcodeproj/project.pbxproj actual
     REGEX "TEST_HOST = .*;" LIMIT_COUNT 1)
if(NOT "${actual}" MATCHES "${expect}")
  message(SEND_ERROR "The actual project contains the line:\n ${actual}\n"
    "which does not match expected regex:\n ${expect}\n")
endif()