diff options
author | Brad King <brad.king@kitware.com> | 2020-04-14 18:45:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-14 18:45:51 (GMT) |
commit | 420e91c9517e5b753b4ae254896059f33ddee7d3 (patch) | |
tree | bf3a3f2bbd99c939973b8e5dbf3fd9f00f7680b0 /Source/cmTarget.cxx | |
parent | 4c82f309c59d02899145bc25c0e9efc91a6f64ed (diff) | |
download | CMake-420e91c9517e5b753b4ae254896059f33ddee7d3.zip CMake-420e91c9517e5b753b4ae254896059f33ddee7d3.tar.gz CMake-420e91c9517e5b753b4ae254896059f33ddee7d3.tar.bz2 |
AIX: Activate symbol export/import IBM i (OS400)
Fixes: #20582
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 7 |
1 files 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 = |