summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-06-17 18:48:49 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-06-18 19:35:26 (GMT)
commitbbcaf9689ea76d8deba13870dfc63f0654348b5a (patch)
treedee3895c9ee330b5329ef560617e765aa297bab2 /Source/cmVisualStudio10TargetGenerator.cxx
parent14456923bd79b5353cf8be49855ac01826d89b70 (diff)
downloadCMake-bbcaf9689ea76d8deba13870dfc63f0654348b5a.zip
CMake-bbcaf9689ea76d8deba13870dfc63f0654348b5a.tar.gz
CMake-bbcaf9689ea76d8deba13870dfc63f0654348b5a.tar.bz2
Refactor: Add IsAndroidGuiExecutable() method to cmTarget
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index a3ccd2b..31bb7be 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -1134,7 +1134,7 @@ void cmVisualStudio10TargetGenerator::WriteProjectConfigurationValues(Elem& e0)
break;
case cmStateEnums::EXECUTABLE:
if (this->NsightTegra &&
- !this->GeneratorTarget->GetPropertyAsBool("ANDROID_GUI")) {
+ !this->GeneratorTarget->Target->IsAndroidGuiExecutable()) {
// Android executables are .so too.
configType = "DynamicLibrary";
} else {
@@ -4015,8 +4015,7 @@ void cmVisualStudio10TargetGenerator::WriteItemDefinitionGroups(Elem& e0)
// output manifest flags <Manifest></Manifest>
this->WriteManifestOptions(e1, c);
if (this->NsightTegra &&
- this->GeneratorTarget->GetType() == cmStateEnums::EXECUTABLE &&
- this->GeneratorTarget->GetPropertyAsBool("ANDROID_GUI")) {
+ this->GeneratorTarget->Target->IsAndroidGuiExecutable()) {
this->WriteAntBuildOptions(e1, c);
}
}