Merge pull request #11667 from TellowKrinkle/DontSucceedOnLinkFail CMake: Use generator expressions for codesign targets