XcodeObjectNeedsQuote-check.cmake 375 B

1234567
  1. set(expect "path = \"")
  2. file(STRINGS ${RunCMake_TEST_BINARY_DIR}/XcodeObjectNeedsQuote.xcodeproj/project.pbxproj actual
  3. REGEX "path = [^;]*someFileWithoutSpecialChars[^;]*;" 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()