mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
try_compile: Report build dir with --debug-trycompile
When `--debug-trycompile` is enabled, issue a log (with trace) for every `try_compile` noting what directory is being used for the compilation. This will make it easier to find the corresponding artifacts. Closes: #24022
This commit is contained in:
committed by
Brad King
parent
cbf3252975
commit
7e6b2a92a0
@@ -1050,6 +1050,13 @@ bool cmCoreTryCompile::TryCompileCode(Arguments& arguments,
|
||||
}
|
||||
}
|
||||
|
||||
if (this->Makefile->GetCMakeInstance()->GetDebugTryCompile()) {
|
||||
auto msg =
|
||||
cmStrCat("Executing try_compile (", *arguments.CompileResultVariable,
|
||||
") in:\n ", this->BinaryDirectory);
|
||||
this->Makefile->IssueMessage(MessageType::LOG, msg);
|
||||
}
|
||||
|
||||
bool erroroc = cmSystemTools::GetErrorOccurredFlag();
|
||||
cmSystemTools::ResetErrorOccurredFlag();
|
||||
std::string output;
|
||||
|
||||
Reference in New Issue
Block a user