summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraSublimeTextGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-13 14:55:17 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-13 14:55:17 (GMT)
commit11fe43422fe046d966dda8ae513b2b0af4377503 (patch)
tree83dc7174e408a107eb31e33e4cac77575055491c /Source/cmExtraSublimeTextGenerator.cxx
parent706aab0418f40e9816be5270e5b4e89321411e2d (diff)
parent684063c0363687285126f30a517239aa2ad46149 (diff)
downloadCMake-11fe43422fe046d966dda8ae513b2b0af4377503.zip
CMake-11fe43422fe046d966dda8ae513b2b0af4377503.tar.gz
CMake-11fe43422fe046d966dda8ae513b2b0af4377503.tar.bz2
Merge topic 'cleanup-edit_cache-target'
684063c Refactor tool selection for edit_cache (#14544) eaf5b7a cmGlobalGenerator: Do not propagate const through GetCMakeInstance
Diffstat (limited to 'Source/cmExtraSublimeTextGenerator.cxx')
-rw-r--r--Source/cmExtraSublimeTextGenerator.cxx20
1 files changed, 0 insertions, 20 deletions
diff --git a/Source/cmExtraSublimeTextGenerator.cxx b/Source/cmExtraSublimeTextGenerator.cxx
index baed733..9cbdd7c 100644
--- a/Source/cmExtraSublimeTextGenerator.cxx
+++ b/Source/cmExtraSublimeTextGenerator.cxx
@@ -172,31 +172,11 @@ void cmExtraSublimeTextGenerator::
{
case cmTarget::GLOBAL_TARGET:
{
- bool insertTarget = false;
// Only add the global targets from CMAKE_BINARY_DIR,
// not from the subdirs
if (strcmp(makefile->GetStartOutputDirectory(),
makefile->GetHomeOutputDirectory())==0)
{
- insertTarget = true;
- // only add the "edit_cache" target if it's not ccmake, because
- // this will not work within the IDE
- if (ti->first == "edit_cache")
- {
- const char* editCommand = makefile->GetDefinition
- ("CMAKE_EDIT_COMMAND");
- if (editCommand == 0)
- {
- insertTarget = false;
- }
- else if (strstr(editCommand, "ccmake")!=NULL)
- {
- insertTarget = false;
- }
- }
- }
- if (insertTarget)
- {
this->AppendTarget(fout, ti->first.c_str(), *lg, 0,
make.c_str(), makefile, compiler.c_str(),
sourceFileFlags, false);