summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/XcodeProject/XcodeAttributeLocation-check.cmake
blob: 2f5513173edefb320d8751fdcd100987ccf42f23 (plain)
1
2
3
4
5
6
7
set(expect "DEPLOYMENT_LOCATION = YES")
file(STRINGS ${RunCMake_TEST_BINARY_DIR}/XcodeAttributeLocation.xcodeproj/project.pbxproj actual
  REGEX "DEPLOYMENT_LOCATION = .*;" 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()