Commit cf13e495 authored by Gregor Jasny's avatar Gregor Jasny
Browse files

Xcode: Control schema generation via variable

Issue: #15441
parent ce0704e4
......@@ -46,7 +46,6 @@ Properties of Global Scope
.. _`Directory Properties`:
......@@ -86,6 +86,7 @@ Variables that Provide Information
......@@ -3,4 +3,4 @@ cmake-xcode-schemes
* The :generator:`Xcode` generator got the ability to create schema files.
This is still an experimental feature and can be activated by setting the
:prop_gbl:`XCODE_GENERATE_SCHEME` global property to a ``TRUE`` value.
:variable:`CMAKE_XCODE_GENERATE_SCHEME` variable to a ``TRUE`` value.
If enabled, the Xcode generator will generate schema files. Those are
are useful to invoke analyze, archive, build-for-testing and test
......@@ -3341,8 +3341,7 @@ void cmGlobalXCodeGenerator::OutputXCodeProject(
// Since the lowest available Xcode version for testing was 7.0,
// I'm setting this as a limit then
if (this->GetCMakeInstance()->GetState()->GetGlobalPropertyAsBool(
if (root->GetMakefile()->IsOn("CMAKE_XCODE_GENERATE_SCHEME") &&
this->XcodeVersion >= 70) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment