if(NOT actual_stdout MATCHES "[ -]-target=x86_64-apple-macosx ") set(RunCMake_TEST_FAILED "No -target=x86_64-apple-macosx flag found!") elseif(actual_stdout MATCHES " (-arch +[^ ]*)") set(RunCMake_TEST_FAILED "'${CMAKE_MATCH_1}' flag incorrectly found!") endif()