mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
GHS: Add platform selection support
This commit is contained in:
@@ -13,6 +13,11 @@ The ``-T <toolset>`` can be supplied for setting the toolset to be used.
|
||||
All toolsets are expected to be located at ``GHS_TOOLSET_ROOT``.
|
||||
If the toolset is not specified then the latest toolset will be used.
|
||||
|
||||
* ``GHS_TARGET_PLATFORM``
|
||||
|
||||
Default to ``integrity``.
|
||||
Usual values are ``integrity``, ``threadx``, ``uvelosity``,
|
||||
``velosity``, ``vxworks``, ``standalone``.
|
||||
|
||||
* ``GHS_TOOLSET_ROOT``
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user