<div dir="ltr">add_custom_target( xxx ) <div>add_custom_command( TARGET xxx </div><div> (PREBUILD? POSTBUILD? PRELINK?)</div><div>COMMAND blah )<br></div><div><br></div><div>Why doesn't that work?</div><div><br></div>
<div>Right now I just have a dirty cmake script that does a bunch of macos that do ... EXECUTE( cmake copy_if_different )'s and I just want to run those as a target instead of as 'cmake .'</div><div><br></div>
<div>replacing "EXECUTE( " with "add_custom_command( TARGET xxx " would be a really simple conversion....</div><div><br></div><div><br></div><div><br></div><div><br></div></div>