summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-20 13:10:52 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-20 15:20:42 (GMT)
commit6fbd4cae0d7765d305d753a78d167b3fcaa6eaf6 (patch)
tree051865c2b01f491e3472f577f39a13080d55be43 /Source/cmMakefile.cxx
parent594dd9b36a7f3ac37b56c89596ff38451570de3e (diff)
downloadCMake-6fbd4cae0d7765d305d753a78d167b3fcaa6eaf6.zip
CMake-6fbd4cae0d7765d305d753a78d167b3fcaa6eaf6.tar.gz
CMake-6fbd4cae0d7765d305d753a78d167b3fcaa6eaf6.tar.bz2
Use cmSystemTools::GetCMakeCommand() to get path to cmake internally
This is much simpler than finding a way to lookup "CMAKE_COMMAND" everywhere.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 3e19cbb..2e7e6bc 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -3575,7 +3575,6 @@ int cmMakefile::TryCompile(const std::string& srcdir,
// make sure the same generator is used
// use this program as the cmake to be run, it should not
// be run that way but the cmake object requires a vailid path
- std::string cmakeCommand = this->GetDefinition("CMAKE_COMMAND");
cmake cm;
cm.SetIsInTryCompile(true);
cmGlobalGenerator *gg = cm.CreateGlobalGenerator