Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmGlobalVisualStudio7Generator.cxx
blob6bb27eb83824160889c4a9fe58f066f1b1e18b32
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmGlobalVisualStudio7Generator.cxx,v $
5 Language: C++
6 Date: $Date: 2008/02/04 21:05:00 $
7 Version: $Revision: 1.99 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #include "windows.h" // this must be first to define GetCurrentDirectory
18 #include "cmGlobalVisualStudio7Generator.h"
19 #include "cmGeneratedFileStream.h"
20 #include "cmLocalVisualStudio7Generator.h"
21 #include "cmMakefile.h"
22 #include "cmake.h"
24 cmGlobalVisualStudio7Generator::cmGlobalVisualStudio7Generator()
26 this->FindMakeProgramFile = "CMakeVS7FindMake.cmake";
30 void cmGlobalVisualStudio7Generator
31 ::EnableLanguage(std::vector<std::string>const & lang,
32 cmMakefile *mf, bool optional)
34 mf->AddDefinition("CMAKE_GENERATOR_CC", "cl");
35 mf->AddDefinition("CMAKE_GENERATOR_CXX", "cl");
36 mf->AddDefinition("CMAKE_GENERATOR_RC", "rc");
37 mf->AddDefinition("CMAKE_GENERATOR_NO_COMPILER_ENV", "1");
38 mf->AddDefinition("CMAKE_GENERATOR_Fortran", "ifort");
40 this->AddPlatformDefinitions(mf);
42 // Create list of configurations requested by user's cache, if any.
43 this->cmGlobalGenerator::EnableLanguage(lang, mf, optional);
44 this->GenerateConfigurations(mf);
46 // if this environment variable is set, then copy it to
47 // a static cache entry. It will be used by
48 // cmLocalGenerator::ConstructScript, to add an extra PATH
49 // to all custom commands. This is because the VS IDE
50 // does not use the environment it is run in, and this allows
51 // for running commands and using dll's that the IDE environment
52 // does not know about.
53 const char* extraPath = cmSystemTools::GetEnv("CMAKE_MSVCIDE_RUN_PATH");
54 if(extraPath)
56 mf->AddCacheDefinition
57 ("CMAKE_MSVCIDE_RUN_PATH", extraPath,
58 "Saved environment variable CMAKE_MSVCIDE_RUN_PATH",
59 cmCacheManager::STATIC);
64 void cmGlobalVisualStudio7Generator::AddPlatformDefinitions(cmMakefile* mf)
66 mf->AddDefinition("MSVC70", "1");
69 std::string cmGlobalVisualStudio7Generator
70 ::GenerateBuildCommand(const char* makeProgram,
71 const char *projectName,
72 const char* additionalOptions, const char *targetName,
73 const char* config, bool ignoreErrors, bool)
75 // Ingoring errors is not implemented in visual studio 6
76 (void) ignoreErrors;
78 // now build the test
79 std::string makeCommand =
80 cmSystemTools::ConvertToOutputPath(makeProgram);
81 std::string lowerCaseCommand = makeCommand;
82 cmSystemTools::LowerCase(lowerCaseCommand);
84 // if there are spaces in the makeCommand, assume a full path
85 // and convert it to a path with no spaces in it as the
86 // RunSingleCommand does not like spaces
87 #if defined(_WIN32) && !defined(__CYGWIN__)
88 if(makeCommand.find(' ') != std::string::npos)
90 cmSystemTools::GetShortPath(makeCommand.c_str(), makeCommand);
92 #endif
93 makeCommand += " ";
94 makeCommand += projectName;
95 makeCommand += ".sln ";
96 bool clean = false;
97 if ( targetName && strcmp(targetName, "clean") == 0 )
99 clean = true;
100 targetName = "ALL_BUILD";
102 if(clean)
104 makeCommand += "/clean ";
106 else
108 makeCommand += "/build ";
111 if(config && strlen(config))
113 makeCommand += config;
115 else
117 makeCommand += "Debug";
119 makeCommand += " /project ";
121 if (targetName && strlen(targetName))
123 makeCommand += targetName;
125 else
127 makeCommand += "ALL_BUILD";
129 if ( additionalOptions )
131 makeCommand += " ";
132 makeCommand += additionalOptions;
134 return makeCommand;
137 ///! Create a local generator appropriate to this Global Generator
138 cmLocalGenerator *cmGlobalVisualStudio7Generator::CreateLocalGenerator()
140 cmLocalVisualStudio7Generator *lg = new cmLocalVisualStudio7Generator;
141 lg->SetExtraFlagTable(this->GetExtraFlagTableVS7());
142 lg->SetGlobalGenerator(this);
143 return lg;
146 void cmGlobalVisualStudio7Generator::GenerateConfigurations(cmMakefile* mf)
148 // process the configurations
149 const char* ct
150 = this->CMakeInstance->GetCacheDefinition("CMAKE_CONFIGURATION_TYPES");
151 if ( ct )
153 std::vector<std::string> argsOut;
154 cmSystemTools::ExpandListArgument(ct, argsOut);
155 for(std::vector<std::string>::iterator i = argsOut.begin();
156 i != argsOut.end(); ++i)
158 if(std::find(this->Configurations.begin(),
159 this->Configurations.end(),
160 *i) == this->Configurations.end())
162 this->Configurations.push_back(*i);
166 // default to at least Debug and Release
167 if(this->Configurations.size() == 0)
169 this->Configurations.push_back("Debug");
170 this->Configurations.push_back("Release");
173 // Reset the entry to have a semi-colon separated list.
174 std::string configs = this->Configurations[0];
175 for(unsigned int i=1; i < this->Configurations.size(); ++i)
177 configs += ";";
178 configs += this->Configurations[i];
181 mf->AddCacheDefinition(
182 "CMAKE_CONFIGURATION_TYPES",
183 configs.c_str(),
184 "Semicolon separated list of supported configuration types, "
185 "only supports Debug, Release, MinSizeRel, and RelWithDebInfo, "
186 "anything else will be ignored.",
187 cmCacheManager::STRING);
190 void cmGlobalVisualStudio7Generator::Generate()
192 // first do the superclass method
193 this->cmGlobalVisualStudioGenerator::Generate();
195 // Now write out the DSW
196 this->OutputSLNFile();
198 // If any solution or project files changed during the generation,
199 // tell Visual Studio to reload them...
200 if(!cmSystemTools::GetErrorOccuredFlag())
202 this->CallVisualStudioMacro(MacroReload);
206 void cmGlobalVisualStudio7Generator
207 ::OutputSLNFile(cmLocalGenerator* root,
208 std::vector<cmLocalGenerator*>& generators)
210 if(generators.size() == 0)
212 return;
214 this->CurrentProject = root->GetMakefile()->GetProjectName();
215 std::string fname = root->GetMakefile()->GetStartOutputDirectory();
216 fname += "/";
217 fname += root->GetMakefile()->GetProjectName();
218 fname += ".sln";
219 cmGeneratedFileStream fout(fname.c_str());
220 fout.SetCopyIfDifferent(true);
221 if(!fout)
223 return;
225 this->WriteSLNFile(fout, root, generators);
226 if (fout.Close())
228 this->FileReplacedDuringGenerate(fname);
232 // output the SLN file
233 void cmGlobalVisualStudio7Generator::OutputSLNFile()
235 std::map<cmStdString, std::vector<cmLocalGenerator*> >::iterator it;
236 for(it = this->ProjectMap.begin(); it!= this->ProjectMap.end(); ++it)
238 this->OutputSLNFile(it->second[0], it->second);
243 void cmGlobalVisualStudio7Generator::AddAllBuildDepends(
244 cmLocalGenerator* root,
245 cmTarget* target,
246 cmGlobalGenerator::TargetDependSet& originalTargets)
248 // if this is the special ALL_BUILD utility, then
249 // make it depend on every other non UTILITY project.
250 for(cmGlobalGenerator::TargetDependSet::iterator ot =
251 originalTargets.begin(); ot != originalTargets.end(); ++ot)
253 cmTarget* t = const_cast<cmTarget*>(*ot);
254 if(!this->IsExcluded(root, *t))
256 if (t->GetType() == cmTarget::UTILITY ||
257 t->GetType() == cmTarget::GLOBAL_TARGET)
259 target->AddUtility(t->GetName());
261 else
263 target->AddLinkLibrary(t->GetName(),cmTarget::GENERAL);
269 void cmGlobalVisualStudio7Generator::WriteTargetConfigurations(
270 std::ostream& fout,
271 cmLocalGenerator* root,
272 cmGlobalGenerator::TargetDependSet& projectTargets)
274 // loop over again and write out configurations for each target
275 // in the solution
276 for(cmGlobalGenerator::TargetDependSet::iterator tt =
277 projectTargets.begin(); tt != projectTargets.end(); ++tt)
279 cmTarget* target = const_cast<cmTarget*>(*tt);
280 if (strncmp(target->GetName(), "INCLUDE_EXTERNAL_MSPROJECT", 26) == 0)
282 cmCustomCommand cc = target->GetPostBuildCommands()[0];
283 const cmCustomCommandLines& cmds = cc.GetCommandLines();
284 std::string project = cmds[0][0];
285 this->WriteProjectConfigurations(fout, project.c_str(),
286 true);
288 else
290 bool partOfDefaultBuild = this->IsPartOfDefaultBuild(
291 root->GetMakefile()->GetProjectName(), target);
292 const char *vcprojName =
293 target->GetProperty("GENERATOR_FILE_NAME");
294 if (vcprojName)
296 this->WriteProjectConfigurations(fout, vcprojName,
297 partOfDefaultBuild);
304 void cmGlobalVisualStudio7Generator::WriteTargetsToSolution(
305 std::ostream& fout,
306 cmLocalGenerator* root,
307 cmGlobalGenerator::TargetDependSet& projectTargets,
308 cmGlobalGenerator::TargetDependSet& originalTargets
311 std::string rootdir = root->GetMakefile()->GetStartOutputDirectory();
312 rootdir += "/";
313 for(cmGlobalGenerator::TargetDependSet::iterator tt =
314 projectTargets.begin(); tt != projectTargets.end(); ++tt)
316 cmTarget* target = const_cast<cmTarget*>(*tt);
317 cmMakefile* mf = target->GetMakefile();
318 // look for the all_build rule and add depends to all
319 // of the original targets (none that were "pulled" into this project)
320 if(mf == root->GetMakefile() &&
321 strcmp(target->GetName(), "ALL_BUILD") == 0)
323 this->AddAllBuildDepends(root, target, originalTargets);
325 // handle external vc project files
326 if (strncmp(target->GetName(), "INCLUDE_EXTERNAL_MSPROJECT", 26) == 0)
328 cmCustomCommand cc = target->GetPostBuildCommands()[0];
329 const cmCustomCommandLines& cmds = cc.GetCommandLines();
330 std::string project = cmds[0][0];
331 std::string location = cmds[0][1];
332 this->WriteExternalProject(fout, project.c_str(),
333 location.c_str(), cc.GetDepends());
335 else
337 bool skip = false;
338 // if it is a global target or the check build system target
339 // or the all_build target
340 // then only use the one that is for the root
341 if(target->GetType() == cmTarget::GLOBAL_TARGET
342 || !strcmp(target->GetName(), CMAKE_CHECK_BUILD_SYSTEM_TARGET)
343 || !strcmp(target->GetName(), this->GetAllTargetName()))
345 if(target->GetMakefile() != root->GetMakefile())
347 skip = true;
350 // if not skipping the project then write it into the
351 // solution
352 if(!skip)
354 const char *vcprojName =
355 target->GetProperty("GENERATOR_FILE_NAME");
356 if(vcprojName)
358 cmMakefile* tmf = target->GetMakefile();
359 std::string dir = tmf->GetStartOutputDirectory();
360 dir = root->Convert(dir.c_str(),
361 cmLocalGenerator::START_OUTPUT);
362 this->WriteProject(fout, vcprojName, dir.c_str(),
363 *target);
371 void cmGlobalVisualStudio7Generator::WriteTargetDepends(
372 std::ostream& fout,
373 cmGlobalGenerator::TargetDependSet& projectTargets
376 for(cmGlobalGenerator::TargetDependSet::iterator tt =
377 projectTargets.begin(); tt != projectTargets.end(); ++tt)
379 cmTarget* target = const_cast<cmTarget*>(*tt);
380 cmMakefile* mf = target->GetMakefile();
381 if (strncmp(target->GetName(), "INCLUDE_EXTERNAL_MSPROJECT", 26) == 0)
383 cmCustomCommand cc = target->GetPostBuildCommands()[0];
384 const cmCustomCommandLines& cmds = cc.GetCommandLines();
385 std::string name = cmds[0][0];
386 std::vector<std::string> depends = cc.GetDepends();
387 std::vector<std::string>::iterator iter;
388 int depcount = 0;
389 for(iter = depends.begin(); iter != depends.end(); ++iter)
391 std::string guid = this->GetGUID(iter->c_str());
392 if(guid.size() == 0)
394 std::string m = "Target: ";
395 m += target->GetName();
396 m += " depends on unknown target: ";
397 m += iter->c_str();
398 cmSystemTools::Error(m.c_str());
401 fout << "\t\t{" << this->GetGUID(name.c_str())
402 << "}." << depcount << " = {" << guid.c_str() << "}\n";
403 depcount++;
406 else
408 const char *vcprojName =
409 target->GetProperty("GENERATOR_FILE_NAME");
410 if (vcprojName)
412 std::string dir = mf->GetStartDirectory();
413 this->WriteProjectDepends(fout, vcprojName,
414 dir.c_str(), *target);
419 // Write a SLN file to the stream
420 void cmGlobalVisualStudio7Generator
421 ::WriteSLNFile(std::ostream& fout,
422 cmLocalGenerator* root,
423 std::vector<cmLocalGenerator*>& generators)
425 // Write out the header for a SLN file
426 this->WriteSLNHeader(fout);
428 // collect the set of targets for this project by
429 // tracing depends of all targets.
430 // also collect the set of targets that are explicitly
431 // in this project.
432 cmGlobalGenerator::TargetDependSet projectTargets;
433 cmGlobalGenerator::TargetDependSet originalTargets;
434 this->GetTargetSets(projectTargets,
435 originalTargets,
436 root, generators);
437 this->WriteTargetsToSolution(fout, root, projectTargets, originalTargets);
438 // Write out the configurations information for the solution
439 fout << "Global\n"
440 << "\tGlobalSection(SolutionConfiguration) = preSolution\n";
442 int c = 0;
443 for(std::vector<std::string>::iterator i = this->Configurations.begin();
444 i != this->Configurations.end(); ++i)
446 fout << "\t\tConfigName." << c << " = " << *i << "\n";
447 c++;
449 fout << "\tEndGlobalSection\n";
450 // Write out project(target) depends
451 fout << "\tGlobalSection(ProjectDependencies) = postSolution\n";
452 this->WriteTargetDepends(fout, projectTargets);
453 fout << "\tEndGlobalSection\n";
455 // Write out the configurations for all the targets in the project
456 fout << "\tGlobalSection(ProjectConfiguration) = postSolution\n";
457 this->WriteTargetConfigurations(fout, root, projectTargets);
458 fout << "\tEndGlobalSection\n";
460 // Write the footer for the SLN file
461 this->WriteSLNFooter(fout);
464 //----------------------------------------------------------------------------
465 std::string
466 cmGlobalVisualStudio7Generator::ConvertToSolutionPath(const char* path)
468 // Convert to backslashes. Do not use ConvertToOutputPath because
469 // we will add quoting ourselves, and we know these projects always
470 // use windows slashes.
471 std::string d = path;
472 std::string::size_type pos = 0;
473 while((pos = d.find('/', pos)) != d.npos)
475 d[pos++] = '\\';
477 return d;
480 // Write a dsp file into the SLN file,
481 // Note, that dependencies from executables to
482 // the libraries it uses are also done here
483 void cmGlobalVisualStudio7Generator::WriteProject(std::ostream& fout,
484 const char* dspname,
485 const char* dir, cmTarget&)
487 fout << "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \""
488 << dspname << "\", \""
489 << this->ConvertToSolutionPath(dir)
490 << "\\" << dspname << ".vcproj\", \"{"
491 << this->GetGUID(dspname) << "}\"\nEndProject\n";
496 // Write a dsp file into the SLN file,
497 // Note, that dependencies from executables to
498 // the libraries it uses are also done here
499 void
500 cmGlobalVisualStudio7Generator
501 ::WriteProjectDepends(std::ostream& fout,
502 const char* dspname,
503 const char*, cmTarget& target)
505 int depcount = 0;
506 // insert Begin Project Dependency Project_Dep_Name project stuff here
507 if (target.GetType() != cmTarget::STATIC_LIBRARY)
509 cmTarget::LinkLibraryVectorType::const_iterator j, jend;
510 j = target.GetLinkLibraries().begin();
511 jend = target.GetLinkLibraries().end();
512 for(;j!= jend; ++j)
514 if(j->first != dspname)
516 // is the library part of this SLN ? If so add dependency
517 if(this->FindTarget(0, j->first.c_str()))
519 std::string guid = this->GetGUID(j->first.c_str());
520 if(guid.size() == 0)
522 std::string m = "Target: ";
523 m += dspname;
524 m += " depends on unknown target: ";
525 m += j->first.c_str();
526 cmSystemTools::Error(m.c_str());
528 fout << "\t\t{" << this->GetGUID(dspname) << "}."
529 << depcount << " = {" << guid << "}\n";
530 depcount++;
536 std::set<cmStdString>::const_iterator i, end;
537 // write utility dependencies.
538 i = target.GetUtilities().begin();
539 end = target.GetUtilities().end();
540 for(;i!= end; ++i)
542 if(*i != dspname)
544 std::string name = this->GetUtilityForTarget(target, i->c_str());
545 std::string guid = this->GetGUID(name.c_str());
546 if(guid.size() == 0)
548 std::string m = "Target: ";
549 m += dspname;
550 m += " depends on unknown target: ";
551 m += name.c_str();
552 cmSystemTools::Error(m.c_str());
555 fout << "\t\t{" << this->GetGUID(dspname) << "}." << depcount << " = {"
556 << guid << "}\n";
557 depcount++;
563 // Write a dsp file into the SLN file, Note, that dependencies from
564 // executables to the libraries it uses are also done here
565 void cmGlobalVisualStudio7Generator
566 ::WriteProjectConfigurations(std::ostream& fout, const char* name,
567 bool partOfDefaultBuild)
569 std::string guid = this->GetGUID(name);
570 for(std::vector<std::string>::iterator i = this->Configurations.begin();
571 i != this->Configurations.end(); ++i)
573 fout << "\t\t{" << guid << "}." << *i
574 << ".ActiveCfg = " << *i << "|Win32\n";
575 if(partOfDefaultBuild)
577 fout << "\t\t{" << guid << "}." << *i
578 << ".Build.0 = " << *i << "|Win32\n";
585 // Write a dsp file into the SLN file,
586 // Note, that dependencies from executables to
587 // the libraries it uses are also done here
588 void cmGlobalVisualStudio7Generator::WriteExternalProject(std::ostream& fout,
589 const char* name,
590 const char* location,
591 const std::vector<std::string>&)
593 std::cout << "WriteExternalProject vs7\n";
594 std::string d = cmSystemTools::ConvertToOutputPath(location);
595 fout << "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \""
596 << name << "\", \""
597 << this->ConvertToSolutionPath(location) << "\", \"{"
598 << this->GetGUID(name)
599 << "}\"\n";
600 fout << "EndProject\n";
605 // Standard end of dsw file
606 void cmGlobalVisualStudio7Generator::WriteSLNFooter(std::ostream& fout)
608 fout << "\tGlobalSection(ExtensibilityGlobals) = postSolution\n"
609 << "\tEndGlobalSection\n"
610 << "\tGlobalSection(ExtensibilityAddIns) = postSolution\n"
611 << "\tEndGlobalSection\n"
612 << "EndGlobal\n";
616 // ouput standard header for dsw file
617 void cmGlobalVisualStudio7Generator::WriteSLNHeader(std::ostream& fout)
619 fout << "Microsoft Visual Studio Solution File, Format Version 7.00\n";
622 std::string cmGlobalVisualStudio7Generator::GetGUID(const char* name)
624 std::string guidStoreName = name;
625 guidStoreName += "_GUID_CMAKE";
626 const char* storedGUID =
627 this->CMakeInstance->GetCacheDefinition(guidStoreName.c_str());
628 if(storedGUID)
630 return std::string(storedGUID);
632 cmSystemTools::Error("Unknown Target referenced : ",
633 name);
634 return "";
638 void cmGlobalVisualStudio7Generator::CreateGUID(const char* name)
640 std::string guidStoreName = name;
641 guidStoreName += "_GUID_CMAKE";
642 if(this->CMakeInstance->GetCacheDefinition(guidStoreName.c_str()))
644 return;
646 std::string ret;
647 UUID uid;
648 unsigned char *uidstr;
649 UuidCreate(&uid);
650 UuidToString(&uid,&uidstr);
651 ret = reinterpret_cast<char*>(uidstr);
652 RpcStringFree(&uidstr);
653 ret = cmSystemTools::UpperCase(ret);
654 this->CMakeInstance->AddCacheEntry(guidStoreName.c_str(),
655 ret.c_str(), "Stored GUID",
656 cmCacheManager::INTERNAL);
659 std::vector<std::string> *cmGlobalVisualStudio7Generator::GetConfigurations()
661 return &this->Configurations;
664 //----------------------------------------------------------------------------
665 void cmGlobalVisualStudio7Generator
666 ::GetDocumentation(cmDocumentationEntry& entry) const
668 entry.Name = this->GetName();
669 entry.Brief = "Generates Visual Studio .NET 2002 project files.";
670 entry.Full = "";
673 // make sure "special" targets have GUID's
674 void cmGlobalVisualStudio7Generator::Configure()
676 cmGlobalGenerator::Configure();
677 this->CreateGUID("ALL_BUILD");
678 this->CreateGUID("INSTALL");
679 this->CreateGUID("RUN_TESTS");
680 this->CreateGUID("EDIT_CACHE");
681 this->CreateGUID("REBUILD_CACHE");
682 this->CreateGUID("PACKAGE");
685 //----------------------------------------------------------------------------
686 void
687 cmGlobalVisualStudio7Generator
688 ::AppendDirectoryForConfig(const char* prefix,
689 const char* config,
690 const char* suffix,
691 std::string& dir)
693 if(config)
695 dir += prefix;
696 dir += config;
697 dir += suffix;
701 bool cmGlobalVisualStudio7Generator::IsPartOfDefaultBuild(const char* project,
702 cmTarget* target)
704 if(target->GetPropertyAsBool("EXCLUDE_FROM_DEFAULT_BUILD"))
706 return false;
708 // if it is a utilitiy target then only make it part of the
709 // default build if another target depends on it
710 int type = target->GetType();
711 if (type == cmTarget::GLOBAL_TARGET)
713 return false;
715 if(type == cmTarget::UTILITY)
717 return this->IsDependedOn(project, target);
719 // default is to be part of the build
720 return true;
723 //----------------------------------------------------------------------------
724 static cmVS7FlagTable cmVS7ExtraFlagTable[] =
726 // Precompiled header and related options. Note that the
727 // UsePrecompiledHeader entries are marked as "Continue" so that the
728 // corresponding PrecompiledHeaderThrough entry can be found.
729 {"UsePrecompiledHeader", "YX", "Automatically Generate", "2",
730 cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
731 {"PrecompiledHeaderThrough", "YX", "Precompiled Header Name", "",
732 cmVS7FlagTable::UserValueRequired},
733 {"UsePrecompiledHeader", "Yu", "Use Precompiled Header", "3",
734 cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue},
735 {"PrecompiledHeaderThrough", "Yu", "Precompiled Header Name", "",
736 cmVS7FlagTable::UserValueRequired},
738 // Exception handling mode. If no entries match, it will be FALSE.
739 {"ExceptionHandling", "GX", "enable c++ exceptions", "TRUE", 0},
740 {"ExceptionHandling", "EHsc", "enable c++ exceptions", "TRUE", 0},
741 // The EHa option does not have an IDE setting. Let it go to false,
742 // and have EHa passed on the command line by leaving out the table
743 // entry.
745 {0,0,0,0,0}
747 cmVS7FlagTable const* cmGlobalVisualStudio7Generator::GetExtraFlagTableVS7()
749 return cmVS7ExtraFlagTable;