summaryrefslogtreecommitdiff
path: root/Source/cmLocalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-20 09:10:52 -0400
committerBrad King <brad.king@kitware.com>2015-05-20 11:20:42 -0400
commit6fbd4cae0d7765d305d753a78d167b3fcaa6eaf6 (patch)
tree051865c2b01f491e3472f577f39a13080d55be43 /Source/cmLocalVisualStudioGenerator.cxx
parent594dd9b36a7f3ac37b56c89596ff38451570de3e (diff)
downloadcmake-6fbd4cae0d7765d305d753a78d167b3fcaa6eaf6.tar.gz
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/cmLocalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmLocalVisualStudioGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx
index 2fd03871aa..f472bbac47 100644
--- a/Source/cmLocalVisualStudioGenerator.cxx
+++ b/Source/cmLocalVisualStudioGenerator.cxx
@@ -99,7 +99,7 @@ cmLocalVisualStudioGenerator::MaybeCreateImplibDir(cmTarget& target,
// Add a pre-build event to create the directory.
cmCustomCommandLine command;
- command.push_back(this->Makefile->GetRequiredDefinition("CMAKE_COMMAND"));
+ command.push_back(cmSystemTools::GetCMakeCommand());
command.push_back("-E");
command.push_back("make_directory");
command.push_back(impDir);