[cmake-developers] [CMake 0012259]: CMake generates invalid Xcode projects when given an Xcode attribute with a comma
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jun 9 04:33:22 EDT 2011
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=12259
======================================================================
Reported By: Jesse Beder
Assigned To:
======================================================================
Project: CMake
Issue ID: 12259
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-06-09 04:33 EDT
Last Modified: 2011-06-09 04:33 EDT
======================================================================
Summary: CMake generates invalid Xcode projects when given an
Xcode attribute with a comma
Description:
Xcode 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 Reproduce:
Use 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 Information:
Xcode version 3.2.5, 64-bit
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-06-09 04:33 Jesse Beder New Issue
======================================================================
More information about the cmake-developers
mailing list