XcodeAttributeLocation-check.cmake 369 B

1234567
  1. set(expect "DEPLOYMENT_LOCATION = YES")
  2. file(STRINGS ${RunCMake_TEST_BINARY_DIR}/XcodeAttributeLocation.xcodeproj/project.pbxproj actual
  3. REGEX "DEPLOYMENT_LOCATION = .*;" LIMIT_COUNT 1)
  4. if(NOT "${actual}" MATCHES "${expect}")
  5. message(SEND_ERROR "The actual project contains the line:\n ${actual}\n"
  6. "which does not match expected regex:\n ${expect}\n")
  7. endif()