Tests: Use idiomatic try_compile calls in TryCompile test

Do not duplicate the `CMakeFiles/CMakeTmp` portion of the path.
The `try_compile` command adds that automatically.
2 files changed