summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 26aaa79..6adc9cf 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -57,6 +57,10 @@ if(APPLE)
set(CMake_USE_MACH_PARSER 1)
endif()
+if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
+ set(CMake_USE_XCOFF_PARSER 1)
+endif()
+
set(EXECUTABLE_OUTPUT_PATH ${CMake_BIN_DIR})
if(WIN32)
@@ -117,6 +121,11 @@ if(CMake_USE_MACH_PARSER)
set(MACH_SRCS cmMachO.h cmMachO.cxx)
endif()
+# Check if we can build the XCOFF parser.
+if(CMake_USE_XCOFF_PARSER)
+ set(XCOFF_SRCS cmXCOFF.h cmXCOFF.cxx)
+endif()
+
#
# Sources for CMakeLib
#
@@ -465,6 +474,7 @@ set(SRCS
cmWorkerPool.h
cmWorkingDirectory.cxx
cmWorkingDirectory.h
+ ${XCOFF_SRCS}
cmXMLParser.cxx
cmXMLParser.h
cmXMLSafe.cxx