From 420e91c9517e5b753b4ae254896059f33ddee7d3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 14 Apr 2020 14:45:29 -0400 Subject: AIX: Activate symbol export/import IBM i (OS400) Fixes: #20582 --- Source/cmTarget.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 80986fc..cdfd349 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -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 = -- cgit v0.12