Browse Source

macOS doesn't like quotes with open command

Josh Engebretson 9 years ago
parent
commit
2bda40267c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      Source/ToolCore/NETTools/NETProjectSystem.cpp

+ 7 - 1
Source/ToolCore/NETTools/NETProjectSystem.cpp

@@ -110,7 +110,9 @@ namespace ToolCore
             if (sourceFilePath.Length())
                 args.Push(sourceFilePath);
 
+#ifndef ATOMIC_PLATFORM_OSX
             QuoteArguments(args);
+#endif
 
             try
             {
@@ -146,11 +148,15 @@ namespace ToolCore
                 args.push_back(idePath_.CString());
 
 #endif
+
+#ifdef ATOMIC_PLATFORM_OSX
+                args.push_back(sourceFilePath.CString());
+#else
                 if (sourceFilePath.Contains(" ") && !sourceFilePath.Contains("\""))
                     args.push_back(("\"" + sourceFilePath + "\"").CString());
                 else
                     args.push_back(sourceFilePath.CString());
-
+#endif
 
                 Poco::Process::launch(command.CString(), args);