AIX: Activate symbol export/import IBM i (OS400)

Fixes: #20582
This commit is contained in:
Brad King
2020-04-14 14:45:29 -04:00
parent 4c82f309c5
commit 420e91c951

View File

@@ -235,8 +235,11 @@ cmTarget::cmTarget(std::string const& name, cmStateEnums::TargetType type,
!impl->Makefile->GetSafeDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX").empty();
// Check whether we are targeting AIX.
impl->IsAIX =
(impl->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME") == "AIX");
{
std::string const& systemName =
impl->Makefile->GetSafeDefinition("CMAKE_SYSTEM_NAME");
impl->IsAIX = (systemName == "AIX" || systemName == "OS400");
}
// Check whether we are targeting an Android platform.
impl->IsAndroid =