summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-09-12 15:08:06 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-09-12 15:08:06 (GMT)
commit2aea6d528e5e310078d270bca9736f9e7d993b1a (patch)
treef1c8fb0ec307ecb8b4875d25b706a7b78b180f2f /Source/cmake.h
parent895f8c42c0608703dff076eb195092a96a7c9f45 (diff)
downloadCMake-2aea6d528e5e310078d270bca9736f9e7d993b1a.zip
CMake-2aea6d528e5e310078d270bca9736f9e7d993b1a.tar.gz
CMake-2aea6d528e5e310078d270bca9736f9e7d993b1a.tar.bz2
added a flag if a cmake is in try compile
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index da5d329..60bde26 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -175,6 +175,12 @@ class cmake
///! Parse command line arguments
void SetArgs(const std::vector<std::string>&);
+ ///! Is this cmake running as a result of a TRY_COMPILE command
+ bool GetIsInTryCompile() { return m_InTryCompile; }
+
+ ///! Is this cmake running as a result of a TRY_COMPILE command
+ void SetIsInTryCompile(bool i) { m_InTryCompile = i; }
+
protected:
typedef std::map<cmStdString, cmCommand*> RegisteredCommandsMap;
RegisteredCommandsMap m_Commands;
@@ -204,5 +210,6 @@ protected:
private:
bool m_Verbose;
bool m_Local;
+ bool m_InTryCompile;
};