diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-20 17:15:56 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-20 17:15:56 (GMT) |
commit | 157e2b4ac3a067107561d4ccc2b08ea3555cce44 (patch) | |
tree | af1a9357c08c2b99ebeabd787e3b5f19bb56e062 /Source/cmMakefile.cxx | |
parent | 92714311c992a924a249bf9f27820f0512af7013 (diff) | |
download | CMake-157e2b4ac3a067107561d4ccc2b08ea3555cce44.zip CMake-157e2b4ac3a067107561d4ccc2b08ea3555cce44.tar.gz CMake-157e2b4ac3a067107561d4ccc2b08ea3555cce44.tar.bz2 |
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
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 106d373..92fe82e 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<std::string> *cmakeArgs) + const std::vector<std::string> *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; |