From 14c70b8c580c519ca38bcd9ba5ca8fc9e7629068 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 11 Apr 2015 12:12:14 +0200 Subject: [PATCH] cmake: out-of-line try compile state methods. --- Source/cmake.cxx | 10 ++++++++++ Source/cmake.h | 6 ++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index cf81ea456..0cbb2994d 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1935,6 +1935,16 @@ void cmake::UpdateProgress(const char *msg, float prog) } } +bool cmake::GetIsInTryCompile() const +{ + return this->InTryCompile; +} + +void cmake::SetIsInTryCompile(bool b) +{ + this->InTryCompile = b; +} + void cmake::GetGeneratorDocumentation(std::vector& v) { for(RegisteredGeneratorsVector::const_iterator i = diff --git a/Source/cmake.h b/Source/cmake.h index 0c3de651b..a9f791d74 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -257,10 +257,8 @@ class cmake bool directoriesSetBefore = false); ///! Is this cmake running as a result of a TRY_COMPILE command - bool GetIsInTryCompile() { return this->InTryCompile; } - - ///! Is this cmake running as a result of a TRY_COMPILE command - void SetIsInTryCompile(bool i) { this->InTryCompile = i; } + bool GetIsInTryCompile() const; + void SetIsInTryCompile(bool b); ///! Parse command line arguments that might set cache values bool SetCacheArgs(const std::vector&);