diff options
author | René Bertin <rjvbertin@gmail.com> | 2024-05-04 17:59:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-06-04 12:37:47 (GMT) |
commit | 598bc704741ccb21c8c382ae4809e5fbfbdc2715 (patch) | |
tree | 1c85e9de716b4f33b48b3fecbc517a0b328afeb6 /bootstrap | |
parent | 1df18d5e54023af6d7802a7219d2d4ef6e88bdb2 (diff) | |
download | CMake-598bc704741ccb21c8c382ae4809e5fbfbdc2715.zip CMake-598bc704741ccb21c8c382ae4809e5fbfbdc2715.tar.gz CMake-598bc704741ccb21c8c382ae4809e5fbfbdc2715.tar.bz2 |
file: Add undocumented READ_MACHO subcommand on macOS
Provide a way to parse the architectures of a Mach-O binary.
Issue: #25952
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -353,6 +353,7 @@ CMAKE_CXX_SOURCES="\ cmExprParserHelper \ cmExternalMakefileProjectGenerator \ cmFileCommand \ + cmFileCommand_ReadMacho \ cmFileCopier \ cmFileInstaller \ cmFileSet \ @@ -521,6 +522,12 @@ CMAKE_CXX_SOURCES="\ cm_fileno \ " +if ${cmake_system_darwin}; then + CMAKE_CXX_SOURCES="${CMAKE_CXX_SOURCES}\ + cmMachO \ + " +fi + if ${cmake_system_mingw}; then CMAKE_CXX_SOURCES="${CMAKE_CXX_SOURCES}\ cmGlobalMSYSMakefileGenerator \ @@ -1669,6 +1676,10 @@ else cmake_report cmConfigure.h${_tmp} "#define CMAKE_BOOTSTRAP_MAKEFILES" fi +if ${cmake_system_darwin}; then + cmake_report cmConfigure.h${_tmp} "#define CMake_USE_MACH_PARSER" +fi + if ${cmake_system_mingw}; then cmake_report cmConfigure.h${_tmp} "#if defined(_WIN32) && !defined(NOMINMAX)" cmake_report cmConfigure.h${_tmp} "# define NOMINMAX" |