View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012259CMakeCMakepublic2011-06-09 04:332012-01-02 15:56
ReporterJesse Beder 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformMacOSOS XOS Version10.6.7
Product VersionCMake 2.8.4 
Target VersionCMake 2.8.6Fixed in VersionCMake 2.8.6 
Summary0012259: CMake generates invalid Xcode projects when given an Xcode attribute with a comma
DescriptionXcode can't open the file, saying that "the project could not be parsed". The example given generates the line

    TARGETED_DEVICE_FAMILY = 1,2;

If you change all instances to

    TARGETED_DEVICE_FAMILY = "1,2";

then the project can be parsed correctly. I'm guessing CMake should just quote any string with a comma.
Steps To ReproduceUse the following CMakeLists.txt file:

    cmake_minimum_required(VERSION 2.6)
    project(test)
    set(CMAKE_OSX_SYSROOT iphoneos4.2)
    set(CMAKE_OSX_ARCHITECTURES "armv6;armv7")
    add_executable(test test.c)
    set_target_properties(test PROPERTIES XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2")

and run cmake with "-G Xcode", and then try to open the Xcode project.

(The file "test.c" can be anything.)
Additional InformationXcode version 3.2.5, 64-bit
TagsNo tags attached.
Attached Filespatch file icon 0001-xcode-Also-qoute-for-xcode-strings-0012259.patch [^] (906 bytes) 2011-06-09 04:39 [Show Content]

 Relationships

  Notes
(0026802)
Johan Björk (reporter)
2011-06-09 04:39

Attached patch. Do you know any other characters that can appear in xcode configuration files that need quotes?
(0027171)
David Cole (manager)
2011-08-04 14:56

Fix pushed to CMake 'next':

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d87eb350f6b7c810145205fb6819e3174efdcc23 [^]
(0028121)
David Cole (manager)
2012-01-02 15:56

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-06-09 04:33 Jesse Beder New Issue
2011-06-09 04:39 Johan Björk Note Added: 0026802
2011-06-09 04:39 Johan Björk File Added: 0001-xcode-Also-qoute-for-xcode-strings-0012259.patch
2011-06-13 14:42 David Cole Assigned To => David Cole
2011-06-13 14:42 David Cole Status new => assigned
2011-08-03 21:48 David Cole Target Version => CMake 2.8.6
2011-08-04 14:56 David Cole Note Added: 0027171
2011-08-04 14:56 David Cole Status assigned => resolved
2011-08-04 14:56 David Cole Fixed in Version => CMake 2.8.6
2011-08-04 14:56 David Cole Resolution open => fixed
2012-01-02 15:56 David Cole Note Added: 0028121
2012-01-02 15:56 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team