diff options
author | Fred Baksik <frodak17@gmail.com> | 2018-07-07 11:27:21 (GMT) |
---|---|---|
committer | Fred Baksik <frodak17@gmail.com> | 2018-07-11 12:33:21 (GMT) |
commit | f80692cf600675bae4d12810c8119a62e76aa701 (patch) | |
tree | 115c01bc19fde67735f3b100e17ce09948d778ae /Source/cmGlobalGhsMultiGenerator.cxx | |
parent | a37a4a00c8b8982c89ffc99505de097d3b2d7300 (diff) | |
download | CMake-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.cxx | 10 |
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; } |