# When using the XCODE Generator is there a way to set the scheme attribute "enableGPUFrameCaptureMode"

**URL:** <https://discourse.cmake.org/t/when-using-the-xcode-generator-is-there-a-way-to-set-the-scheme-attribute-enablegpuframecapturemode/4091>\
**Category:** Code\
**Tags:** os:macos, gen:xcode\
**Created:** [September 15, 2021, 5:48am UTC](https://discourse.cmake.org/t/when-using-the-xcode-generator-is-there-a-way-to-set-the-scheme-attribute-enablegpuframecapturemode/4091 "2021-09-15T05:48:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zorro666](https://discourse.cmake.org/user_avatar/discourse.cmake.org/zorro666/32/1523_2.png) [@Zorro666](https://discourse.cmake.org/u/Zorro666)\
**Post date:** [September 15, 2021, 5:48am UTC](https://discourse.cmake.org/t/when-using-the-xcode-generator-is-there-a-way-to-set-the-scheme-attribute-enablegpuframecapturemode/4091/1 "2021-09-15T05:48:25Z")

</div>

By default I would like to set the Xcode scheme Option `GPU Frame Capture` to `disabled` when generating an Xcode project using CMake.

In the Xcode `.xcscheme` file the attribute is called `enableGPUFrameCaptureMode` and the value I need is `"3"` ie. using the UI to set this attribute to `disabled` then I get this output in the Xcode .xcscheme file

`enableGPUFrameCaptureMode = "3"`

I am using the existing XCODE\_SCEHEME properties to set specific scheme options ie.

```auto
set_target_properties(build-qrenderdoc PROPERTIES XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING OFF)
set_target_properties(build-qrenderdoc PROPERTIES XCODE_SCHEME_EXECUTABLE ${CMAKE_BINARY_DIR}/bin/qrenderdoc.app)

```

I could not see a property relating to `GPU Frame Capture`

Thank you in advance

---

<div class="post-metadata">

**Author:** ![Zorro666](https://discourse.cmake.org/user_avatar/discourse.cmake.org/zorro666/32/1523_2.png) [@Zorro666](https://discourse.cmake.org/u/Zorro666)\
**Post date:** [September 29, 2021, 4:08am UTC](https://discourse.cmake.org/t/when-using-the-xcode-generator-is-there-a-way-to-set-the-scheme-attribute-enablegpuframecapturemode/4091/2 "2021-09-29T04:08:44Z")

</div>

I am considering exploring adding this as an option to the Xcode generation to be able to specify the Xcode scheme launch action property “enableGPUFrameCaptureMode” (even in a local version of cmake). As this property is reset each time I generate a new Xcode project and its default value is incorrect for the project I am currently working on.

---

<div class="post-metadata">

**Author:** ![Zorro666](https://discourse.cmake.org/user_avatar/discourse.cmake.org/zorro666/32/1523_2.png) [@Zorro666](https://discourse.cmake.org/u/Zorro666)\
**Post date:** [February 16, 2022, 5:31am UTC](https://discourse.cmake.org/t/when-using-the-xcode-generator-is-there-a-way-to-set-the-scheme-attribute-enablegpuframecapturemode/4091/3 "2022-02-16T05:31:21Z")

</div>

The property [XCODE\_SCHEME\_ENABLE\_GPU\_FRAME\_CAPTURE\_MODE](https://cmake.org/cmake/help/latest/prop_tgt/XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE.html#prop_tgt:XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE) was added to CMake 3.23
