summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-17 14:09:35 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-10-17 14:09:43 (GMT)
commitc6fa5f7a70214f2a2d617d966b01e97824cf425e (patch)
tree188071c5c32467d6101a0eaf247060f862ceb10b /Source/cmMakefile.cxx
parent37fc2176dde43530bb235713b17d0432ecb98589 (diff)
parent5ba51621af43dbb84a12a5eff6740f45b8ab0cb0 (diff)
downloadCMake-c6fa5f7a70214f2a2d617d966b01e97824cf425e.zip
CMake-c6fa5f7a70214f2a2d617d966b01e97824cf425e.tar.gz
CMake-c6fa5f7a70214f2a2d617d966b01e97824cf425e.tar.bz2
Merge topic 'trace-try_compile'
5ba51621af try_compile: Propagate --trace through try_compile Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7757
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 4100d1f..90a38be 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -3584,6 +3584,9 @@ int cmMakefile::TryCompile(const std::string& srcdir,
gg->RecursionDepth = this->RecursionDepth;
cm.SetGlobalGenerator(std::move(gg));
+ // copy trace state
+ cm.SetTraceRedirect(this->GetCMakeInstance());
+
// do a configure
cm.SetHomeDirectory(srcdir);
cm.SetHomeOutputDirectory(bindir);