FeatureRequest: try_compile() provide mechanism to pass build arguments to the underlying build system
E.g when debugging why a try_compile()
, check_source_compiles()
, check_linker_flag()
, check_compiler_flag()
didn't work, it'd be enormously useful to see the fully expanded commands that were executed in CMakeError.log
I'm using the Ninja, or Ninja Multi-Config generators, so I would want to pass -v to the invocation of ninja.
However, try_compile()
doesn't provide anything for me to add that flag to.