View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015221CMakeCMakepublic2014-10-27 18:322015-04-06 09:07
ReporterIlya 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake 3.0.2 
Target VersionFixed in Version 
Summary0015221: Allow a user to set project-wide attributes in Xcode
DescriptionSome 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…)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0037078)
Nils Gladitz (developer)
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 (manager)
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 (reporter)
2014-10-28 13:24

Works for me. Please close it.
(0038431)
Robert Maynard (manager)
2015-04-06 09:07

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

 Issue History
Date Modified Username Field Change
2014-10-27 18:32 Ilya New Issue
2014-10-28 03:39 Nils Gladitz Note Added: 0037078
2014-10-28 08:41 Brad King Note Added: 0037080
2014-10-28 13:24 Ilya Note Added: 0037086
2014-10-28 13:58 Brad King Status new => resolved
2014-10-28 13:58 Brad King Resolution open => no change required
2015-04-06 09:07 Robert Maynard Note Added: 0038431
2015-04-06 09:07 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team