summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-11 10:16:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-04-13 18:27:36 (GMT)
commit62854e9966a3fe308cff4a76c89f6bf72f76551c (patch)
tree1750b80cdf1356680f143e6902c776bf4bf8376a /Source/cmState.cxx
parentdb8425be18439c899c08294dde117cc137c75d23 (diff)
downloadCMake-62854e9966a3fe308cff4a76c89f6bf72f76551c.zip
CMake-62854e9966a3fe308cff4a76c89f6bf72f76551c.tar.gz
CMake-62854e9966a3fe308cff4a76c89f6bf72f76551c.tar.bz2
cmState: Move try_compile state from cmake class.
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index c43262f..be6a766 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -15,7 +15,8 @@
#include "cmCacheManager.h"
cmState::cmState(cmake* cm)
- : CMakeInstance(cm)
+ : CMakeInstance(cm),
+ IsInTryCompile(false)
{
}
@@ -263,3 +264,13 @@ void cmState::ClearEnabledLanguages()
{
this->EnabledLanguages.clear();
}
+
+bool cmState::GetIsInTryCompile() const
+{
+ return this->IsInTryCompile;
+}
+
+void cmState::SetIsInTryCompile(bool b)
+{
+ this->IsInTryCompile = b;
+}