diff options
author | Brad King <brad.king@kitware.com> | 2008-03-01 14:08:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-01 14:08:34 (GMT) |
commit | 230c8972f7edf1664a8de87a47bf3b5ccfe1fe5e (patch) | |
tree | 6f5a1874885b896856927f113a1909b6ec9ce40d /Source/cmLocalGenerator.cxx | |
parent | c0f2d419e0c274c1d155460c3dcb7614bae94b1d (diff) | |
download | CMake-230c8972f7edf1664a8de87a47bf3b5ccfe1fe5e.zip CMake-230c8972f7edf1664a8de87a47bf3b5ccfe1fe5e.tar.gz CMake-230c8972f7edf1664a8de87a47bf3b5ccfe1fe5e.tar.bz2 |
BUG: Do not place $(CMAKE_COMMAND) in link scripts.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index abf4a30..5fca1f3 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -938,6 +938,12 @@ cmLocalGenerator::ExpandRuleVariable(std::string const& variable, return replaceValues.LinkLibraries; } } + if(variable == "CMAKE_COMMAND") + { + const char* cmcommand = + this->GlobalGenerator->GetCMakeInstance()->GetCMakeCommand(); + return this->Convert(cmcommand, FULL, SHELL); + } std::vector<std::string> enabledLanguages; this->GlobalGenerator->GetEnabledLanguages(enabledLanguages); // loop over language specific replace variables |