ソースを参照

ENH: getting closer

Bill Hoffman 18 年 前
コミット
5af3105021
1 ファイル変更16 行追加4 行削除
  1. 16 4
      Source/cmGlobalXCodeGenerator.cxx

+ 16 - 4
Source/cmGlobalXCodeGenerator.cxx

@@ -2623,10 +2623,22 @@ cmGlobalXCodeGenerator
     {
     if(config)
       {
-
-      dir += prefix;
-      dir += config;
-      dir += suffix;
+      if(dir.find(".framework") != dir.npos)
+        {
+        std::string::size_type pos = dir.rfind("/");
+        std::string framework = dir.substr(pos);
+        std::string newDir;
+        newDir = dir.substr(0, pos);
+        newDir += "/";
+        newDir += config;
+        dir = newDir;
+        }
+      else
+        {
+        dir += prefix;
+        dir += config;
+        dir += suffix;
+        }
       }
     }
 }