summaryrefslogtreecommitdiffstats
path: root/Source/cmTryCompileCommand.h
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-05-24 12:56:14 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-05-24 12:56:14 (GMT)
commit00e6d62fd13953ce52f5507f6263504261e7687c (patch)
tree49d56cc76c50d839e303ee222b89141e787d6676 /Source/cmTryCompileCommand.h
parent79756b0e676c9e5e02ad13039ad092b78f64f63d (diff)
downloadCMake-00e6d62fd13953ce52f5507f6263504261e7687c.zip
CMake-00e6d62fd13953ce52f5507f6263504261e7687c.tar.gz
CMake-00e6d62fd13953ce52f5507f6263504261e7687c.tar.bz2
ENH: move output file search to cmTryCompileCommand.cxx, so it can be used
there too... many public static functions with lots of arguments... :-/ Alex
Diffstat (limited to 'Source/cmTryCompileCommand.h')
-rw-r--r--Source/cmTryCompileCommand.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/Source/cmTryCompileCommand.h b/Source/cmTryCompileCommand.h
index 23980af..25fbea5 100644
--- a/Source/cmTryCompileCommand.h
+++ b/Source/cmTryCompileCommand.h
@@ -59,8 +59,11 @@ public:
* commands, such as TryRun can access the same logic without
* duplication.
*/
- static int CoreTryCompileCode(
- cmMakefile *mf, std::vector<std::string> const& argv, bool clean);
+ static int CoreTryCompileCode(cmMakefile *mf,
+ std::vector<std::string> const& argv,
+ bool clean,
+ const char* cmakeCommand,
+ std::string& outputFile);
/**
* This deletes all the files created by TRY_COMPILE or TRY_RUN
@@ -68,7 +71,15 @@ public:
* dependencies of makefiles.
*/
static void CleanupFiles(const char* binDir);
-
+
+ /**
+ * This tries to find the (executable) file created by TRY_COMPILE or
+ * TRY_RUN. If nothing is found an empty string will be returned.
+ */
+ static const char* GetOutputFile(cmMakefile* mf, const char* binaryDirectory,
+ const char* targetName, const char* cmakeCommand,
+ std::string& errorMessage);
+
/**
* More documentation. */
virtual const char* GetFullDocumentation()