[CMake] [BUG] [PATCH] Unable to load project in XCode

Joshua Jensen jjensen at workspacewhiz.com
Sun May 27 02:51:21 EDT 2007


After inserting the following into my CMakeLists.txt:

SET_TARGET_PROPERTIES(MyLibrary PROPERTIES BUILD_WITH_INSTALL_RPATH 1 
INSTALL_NAME_DIR @executable_path)
 
XCode stopped opening the .xcodeproj.  This was due to an unquoted line 
in project.pbxproj:

INSTALL_NAME = @executable_path

It should be:

INSTALL_NAME = "@executable_path"

The following patch fixes the issue.

Thanks.

Josh

--- Source/cmXCodeObject.cxx    Wed Feb 21 13:01:19 2007
+++ Source/cmXCodeObject.cxx    Sun May 27 00:42:41 2007
@@ -194,7 +194,7 @@
   cmSystemTools::ReplaceString(ss, "\"", "\\\"");
   bool needQuote = false;
   this->String = "";
-  if(ss.find_first_of(" <>.+-=") != ss.npos)
+  if(ss.find_first_of(" <>.+-=@") != ss.npos)
     {
     needQuote = true;
     }





More information about the CMake mailing list