try_compile: Add PROJECT keyword-dispatched signature
Introduce a new signature for the project flavor of try_compile
(and try_run
) which removes the bindir
argument and adds a required PROJECT
tag. This is similar to the SOURCES flavor added by !7579 (merged).
Note: try_run(run out PROJECT ...)
is tested in the TryCompile
test. Upon consideration, I don't think there's significant value to be gained in adding RunCMake.try_run
tests.
Issue: #22799 (closed)
Edited by Brad King