diff options
author | Brad King <brad.king@kitware.com> | 2021-01-29 18:25:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-02-03 17:26:58 (GMT) |
commit | 56fc4a325f08465b725b08b3975cd51bdd2305c8 (patch) | |
tree | e92abaf4dd695b618db00ef568225a97a407f077 /Source/CMakeLists.txt | |
parent | ddaaee907dc617f6a763de37c368e50cd23a8a53 (diff) | |
download | CMake-56fc4a325f08465b725b08b3975cd51bdd2305c8.zip CMake-56fc4a325f08465b725b08b3975cd51bdd2305c8.tar.gz CMake-56fc4a325f08465b725b08b3975cd51bdd2305c8.tar.bz2 |
cmXCOFF: Add helper to parse and edit the XCOFF binary format
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r-- | Source/CMakeLists.txt | 10 |
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 |