diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2017-02-24 15:18:35 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2017-03-12 20:24:46 (GMT) |
commit | cf13e495447662624c3389dc075fe48342f5e593 (patch) | |
tree | 804b73759fba19e237faafef142b0953bb2cf967 /Source | |
parent | ce0704e41958378381ca6fd24591f81df5232191 (diff) | |
download | CMake-cf13e495447662624c3389dc075fe48342f5e593.zip CMake-cf13e495447662624c3389dc075fe48342f5e593.tar.gz CMake-cf13e495447662624c3389dc075fe48342f5e593.tar.bz2 |
Xcode: Control schema generation via variable
Issue: #15441
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index b023d5c..77f3408 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -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( - "XCODE_GENERATE_SCHEME") && + if (root->GetMakefile()->IsOn("CMAKE_XCODE_GENERATE_SCHEME") && this->XcodeVersion >= 70) { this->OutputXCodeSharedSchemes(xcodeDir); this->OutputXCodeWorkspaceSettings(xcodeDir); |