[CMake] Xcode 4 and FOLDER target properties

Steven Wilson steven.wesley.wilson at gmail.com
Mon Oct 3 12:00:18 EDT 2011


I was able to get the FOLDER working with the following form:

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set_property(TARGET "target" PROPERTY FOLDER "value")

The following construct does not work (in either Visual Studio or Xcode):

set_target_properties(target PROPERTY FOLDER "value")

In Xcode 4, the FOLDER property arranges the list of project folders in the
project browser.   Is there a mechanism for grouping the target names in the
IDE pull down list of build targets?


On Sat, Oct 1, 2011 at 11:57 AM, David Cole <david.cole at kitware.com> wrote:

> On Tue, Sep 27, 2011 at 1:15 PM, Steven Wilson <
> steven.wesley.wilson at gmail.com> wrote:
>
>> Using the Xcode generator, the FOLDER property of targets appears to do
>> nothing.   Is this behavior simply a function a Xcode not supporting
>> groupings of targets or will support be added in 2.8.6?
>
>
> I will have to investigate this... It should work.
>
> This commit, which is included in the CMake 2.8.5 release that is out there
> right now, added the FOLDER support for Xcode:
>
>
> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=eeeeca1082a8be5890a6d2096b505ebe584fc2b7
>
> Perhaps more code is needed...
>
> What version of CMake and Xcode are you using?
>
>
> Thx,
> David C.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111003/62391660/attachment.htm>


More information about the CMake mailing list