MantisBT - CMake
View Issue Details
0011259CMakeCMakepublic2010-09-22 23:042011-05-02 14:46
Claus Höfele 
David Cole 
normalcrashalways
closedduplicate 
CMake-2-8 
CMake 2.8.3CMake 2.8.3 
0011259: Setting CMAKE_OSX_ARCHITECTURES Produces Invalid Xcode Project File
To generate an Xcode project file for iPhone, I'm using

  set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_UNIVERSAL_IPHONE_OS)")

to specify the architectures for the project. If this setting is missing, Xcode enables the architectures x86_64, i386, and ppc, but not the iPhone architectures (arm).

This works with cmake 2.8.0, but not 2.8.2. When using cmake 2.8.2, Xcode 3.2.3 shows an error dialog "Unable to Open Project" "Project ... cannot be opened because the project file cannot be parsed."

Repro:
- Unpack attached cmake_test.zip
- Change into projects directory
- Execute ./generate_xcodei2.sh (The shell script sets a variable that my CMakeList.txt needs.
-> The resulting project file xcodei/2dots.xcodeproj will not open

- Comment out line with CMAKE_OSX_ARCHITECTURES
-> Project file works
No tags attached.
duplicate of 0011244closed Brad King Using Xcode built-in variables as CMAKE_OSX_ARCHITECTURES 
zip cmake_test.zip (56,928) 2010-09-22 23:04
https://public.kitware.com/Bug/file/3407/cmake_test.zip
Issue History
2010-09-22 23:04Claus HöfeleNew Issue
2010-09-22 23:04Claus HöfeleFile Added: cmake_test.zip
2010-10-09 07:27Claus HöfeleNote Added: 0022461
2011-01-17 16:31David ColeAssigned To => David Cole
2011-01-17 16:31David ColeStatusnew => assigned
2011-01-17 16:31David ColeNote Added: 0024823
2011-01-17 16:31David ColeRelationship addedduplicate of 0011244
2011-01-17 16:31David ColeStatusassigned => resolved
2011-01-17 16:31David ColeFixed in Version => CMake 2.8.3
2011-01-17 16:31David ColeResolutionopen => duplicate
2011-01-17 16:33David ColeTarget Version => CMake 2.8.3
2011-05-02 14:46David ColeNote Added: 0026357
2011-05-02 14:46David ColeStatusresolved => closed

Notes
(0022461)
Claus Höfele   
2010-10-09 07:27   
OK, this is a duplicate of 0011244 and has been fixed.
(0024823)
David Cole   
2011-01-17 16:31   
Resolving as duplicate, since reporter says it is a duplicate, and it has been fixed already...
(0026357)
David Cole   
2011-05-02 14:46   
Closing resolved issues that have not been updated in more than 3 months.