From 27916f2cd10904deda1a44bf221fbdef7ba1af66 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 7 Oct 2015 00:37:31 +0200 Subject: cmLocalGenerator: Add cmake instance accessor. --- Source/cmLocalGenerator.cxx | 5 +++++ Source/cmLocalGenerator.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index b26151c..6647894 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2858,6 +2858,11 @@ cmLocalGenerator return source.GetLanguage(); } +cmake* cmLocalGenerator::GetCMakeInstance() const +{ + return this->GlobalGenerator->GetCMakeInstance(); +} + //---------------------------------------------------------------------------- std::string cmLocalGenerator::GetTargetDirectory(cmTarget const&) const diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index 33fede1..d9623cb 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -251,6 +251,8 @@ public: */ bool NeedBackwardsCompatibility_2_4(); + cmake* GetCMakeInstance() const; + /** * Generate a Mac OS X application bundle Info.plist file. */ -- cgit v0.12