AIX: Add platform id variables 'AIX' and 'CMAKE_HOST_AIX'

This allows projects to use `if(AIX)` blocks instead of spelling
out `if(CMAKE_SYSTEM_NAME STREQUAL "AIX")`.  We already have similar
variables for many other platforms.
This commit is contained in:
Aditya Vidyadhar Kamath
2025-02-06 22:39:32 -06:00
committed by Brad King
parent 8137cf2822
commit ff03db6657
7 changed files with 24 additions and 0 deletions

6
Help/variable/AIX.rst Normal file
View File

@@ -0,0 +1,6 @@
AIX
---
.. versionadded:: 4.0
Set to true when the target system is AIX.

View File

@@ -0,0 +1,6 @@
CMAKE_HOST_AIX
--------------
.. versionadded:: 4.0
Set to true when the host system is AIX.