summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGhsMultiGenerator.cxx
diff options
context:
space:
mode:
authorFred Baksik <frodak17@gmail.com>2018-07-07 11:27:21 (GMT)
committerFred Baksik <frodak17@gmail.com>2018-07-11 12:33:21 (GMT)
commitf80692cf600675bae4d12810c8119a62e76aa701 (patch)
tree115c01bc19fde67735f3b100e17ce09948d778ae /Source/cmGlobalGhsMultiGenerator.cxx
parenta37a4a00c8b8982c89ffc99505de097d3b2d7300 (diff)
downloadCMake-f80692cf600675bae4d12810c8119a62e76aa701.zip
CMake-f80692cf600675bae4d12810c8119a62e76aa701.tar.gz
CMake-f80692cf600675bae4d12810c8119a62e76aa701.tar.bz2
GHS: Add platform selection support
Diffstat (limited to 'Source/cmGlobalGhsMultiGenerator.cxx')
-rw-r--r--Source/cmGlobalGhsMultiGenerator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalGhsMultiGenerator.cxx b/Source/cmGlobalGhsMultiGenerator.cxx
index c980746..ddf8147 100644
--- a/Source/cmGlobalGhsMultiGenerator.cxx
+++ b/Source/cmGlobalGhsMultiGenerator.cxx
@@ -127,6 +127,16 @@ bool cmGlobalGhsMultiGenerator::SetGeneratorPlatform(std::string const& p,
cmStateEnums::INTERNAL);
}
+ const char* tgtPlatform = mf->GetDefinition("GHS_TARGET_PLATFORM");
+ if (tgtPlatform == nullptr) {
+ tgtPlatform = "integrity";
+ }
+
+ /* store the platform name for later use */
+ mf->AddCacheDefinition("GHS_TARGET_PLATFORM", tgtPlatform,
+ "Name of GHS target platform.",
+ cmStateEnums::INTERNAL);
+
return true;
}