From 157e2b4ac3a067107561d4ccc2b08ea3555cce44 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 20 Sep 2002 13:15:56 -0400 Subject: Add option of TRY_COMPILE to store the output of compilation so that if the output fails you can display it or store it in the file --- Source/cmMakefile.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/cmMakefile.cxx') diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 106d37330a..92fe82ec88 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1340,7 +1340,8 @@ void cmMakefile::ExpandSourceListArguments( int cmMakefile::TryCompile(const char *srcdir, const char *bindir, const char *projectName, const char *targetName, - const std::vector *cmakeArgs) + const std::vector *cmakeArgs, + std::string *output) { // does the binary directory exist ? If not create it... if (!cmSystemTools::FileIsDirectory(bindir)) @@ -1409,7 +1410,8 @@ int cmMakefile::TryCompile(const char *srcdir, const char *bindir, int ret = m_LocalGenerator->GetGlobalGenerator()->TryCompile(srcdir,bindir, projectName, - targetName); + targetName, + output); cmSystemTools::ChangeDirectory(cwd.c_str()); return ret; -- cgit v1.2.1