MantisBT - CMake
View Issue Details
0015221CMakeCMakepublic2014-10-27 18:322015-04-06 09:07
Ilya 
 
normalfeaturealways
closedno change required 
CMake 3.0.2 
 
0015221: Allow a user to set project-wide attributes in Xcode
Some options are very often used project-wide, e.g. LLVM_LTO or DEBUG_INFORMATION_FORMAT.
CMake should allow to set them globally e.g. via set_propert(GLOBAL…)
No tags attached.
Issue History
2014-10-27 18:32IlyaNew Issue
2014-10-28 03:39Nils GladitzNote Added: 0037078
2014-10-28 08:41Brad KingNote Added: 0037080
2014-10-28 13:24IlyaNote Added: 0037086
2014-10-28 13:58Brad KingStatusnew => resolved
2014-10-28 13:58Brad KingResolutionopen => no change required
2015-04-06 09:07Robert MaynardNote Added: 0038431
2015-04-06 09:07Robert MaynardStatusresolved => closed

Notes
(0037078)
Nils Gladitz   
2014-10-28 03:39   
The Xcode generator checks for variables that have a "CMAKE_XCODE_ATTRIBUTE_" prefix and seems to translate them into Xcode attributes [1].

This seems to be undocumented but looks like it would work similar to the XCODE_ATTRIBUTE_<an-attribute> [2] properties.

[1] http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmGlobalXCodeGenerator.cxx;h=13e698858177d8b3d163d20763afc8a8837c4a5b#l3385 [^]

[2] http://www.cmake.org/cmake/help/v3.0/prop_tgt/XCODE_ATTRIBUTE_an-attribute.html [^]
(0037080)
Brad King   
2014-10-28 08:41   
Documentation for the upcoming 3.1 release now covers CMAKE_XCODE_ATTRIBUTE_:

 http://www.cmake.org/cmake/help/v3.1/variable/CMAKE_XCODE_ATTRIBUTE_an-attribute.html [^]
(0037086)
Ilya   
2014-10-28 13:24   
Works for me. Please close it.
(0038431)
Robert Maynard   
2015-04-06 09:07   
Closing resolved issues that have not been updated in more than 4 months.