mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-02 20:58:58 -06:00
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:
committed by
Brad King
parent
8137cf2822
commit
ff03db6657
@@ -17,6 +17,7 @@ unset(MSYS)
|
||||
unset(WIN32)
|
||||
unset(BSD)
|
||||
unset(LINUX)
|
||||
unset(AIX)
|
||||
|
||||
# The CMAKE_EFFECTIVE_SYSTEM_NAME is used to load compiler and compiler
|
||||
# wrapper configuration files. By default it equals to CMAKE_SYSTEM_NAME
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
set(AIX 1)
|
||||
set(UNIX 1)
|
||||
|
||||
Reference in New Issue
Block a user