Modules: Use new SOURCES_FROM_* try_compile
Modify modules that ship with CMake to use the new SOURCES_FROM_*
arguments to try_compile
/ try_run
as added by !7700 (merged).
Part 1 of 2 covers users which previously either used an existing file (but sometimes needed to rename it), or which wrote out their source in entirety.
Part 2 of 2 covers users that need configure_file
functionality. (Also, FindOpenACC.cmake
is in this group because it was using configure_file
, although it turns out to not actually need it.)
Issue: #22799 (closed)
Edited by Brad King