Allow to set working directory for try_run
Currently the working directory when running exectuables built with try_run
is the build root folder. Given that you may want to implement feature tests which rely on testing I/O functions it would make sense to be able to specify a working directory different from the build root as temporary files may be created that accidently override existing files. I initially had expected that the working directory would be the same as the bindir
argument (which btw is not documented in try_run
).