Browse Source

COMP: More fixes for visual studio

Andy Cedilnik 19 years ago
parent
commit
7c0251014c
2 changed files with 4 additions and 1 deletions
  1. 1 1
      Source/cmGlobalGenerator.cxx
  2. 3 0
      Source/cmLocalVisualStudio7Generator.cxx

+ 1 - 1
Source/cmGlobalGenerator.cxx

@@ -695,7 +695,7 @@ void cmGlobalGenerator::Generate()
     cmTargets::iterator tit;
     for ( tit = globalTargets.begin(); tit != globalTargets.end(); ++ tit )
       {
-      targets[tit->first] = tit->second;
+      (*targets)[tit->first] = tit->second;
       }
     m_LocalGenerators[i]->Generate();
     m_LocalGenerators[i]->GenerateInstallRules();

+ 3 - 0
Source/cmLocalVisualStudio7Generator.cxx

@@ -163,6 +163,9 @@ void cmLocalVisualStudio7Generator::OutputVCProjFile()
               && (strncmp(l->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) != 0)
               && (strcmp(l->first.c_str(), "ALL_BUILD") != 0)
               && (strcmp(l->first.c_str(), "RUN_TESTS") != 0)
+              && (strcmp(l->first.c_str(), "EDIT_CACHE") != 0)
+              && (strcmp(l->first.c_str(), "REBUILD_CACHE") != 0)
+              && (strcmp(l->first.c_str(), "PACKAGE") != 0)
               && (strcmp(l->first.c_str(), "INSTALL") != 0)
               && (strcmp(l->first.c_str(), CMAKE_CHECK_BUILD_SYSTEM_TARGET) != 0))
             {