try_compile: Propagate --trace through try_compile

Add ability to specify another cmake instance from which to get the
trace output target. Use this during try_compile.
9 files changed