diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2014-12-19 19:30:22 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2014-12-22 18:32:10 (GMT) |
commit | e42da30782785a02f0fabc385d14ac8f561af602 (patch) | |
tree | e7b0c84a14098a50d8af69ac211dda8218f58ec6 /Source/CMakeLists.txt | |
parent | cd7bde80bf3c3e141a92058ad033833066da509b (diff) | |
download | CMake-e42da30782785a02f0fabc385d14ac8f561af602.zip CMake-e42da30782785a02f0fabc385d14ac8f561af602.tar.gz CMake-e42da30782785a02f0fabc385d14ac8f561af602.tar.bz2 |
Mach-O: Add Mach-O parser for OS X and iOS.
This parser also supports fat binaries which archive multiple
Mach-O binaries.
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 a4c982f..97f57a3 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -39,6 +39,10 @@ else() set(CMAKE_USE_ELF_PARSER) endif() +if(APPLE) + set(CMAKE_USE_MACH_PARSER 1) +endif() + set(EXECUTABLE_OUTPUT_PATH ${CMake_BIN_DIR}) # ensure Unicode friendly APIs are used on Windows @@ -140,6 +144,11 @@ if(CMAKE_USE_ELF_PARSER) set(ELF_SRCS cmELF.h cmELF.cxx) endif() +# Check if we can build the Mach-O parser. +if(CMAKE_USE_MACH_PARSER) + set(MACH_SRCS cmMachO.h cmMachO.cxx) +endif() + # # Sources for CMakeLib # @@ -267,6 +276,7 @@ set(SRCS cmLocalGenerator.cxx cmLocalGenerator.h cmLocalUnixMakefileGenerator3.cxx + ${MACH_SRCS} cmMakeDepend.cxx cmMakeDepend.h cmMakefile.cxx |