-`CAPSTONE_BUILD_CSTOOL`: Enable/disable build of `cstool`. Default is enabled if build runs from the repository root.
-`CAPSTONE_USE_SYS_DYN_MEM`: change this to OFF to use your own dynamic memory management.
-`CAPSTONE_BUILD_MACOS_THIN`: MacOS only. Disables universal2 build. So you only get the binary for you processor architecture.
-`CAPSTONE_BUILD_DIET`: change this to ON to make the binaries more compact.
-`CAPSTONE_X86_REDUCE`: change this to ON to make X86 binary smaller.
-`CAPSTONE_X86_ATT_DISABLE`: change this to ON to disable AT&T syntax on x86.
By default, Capstone use system dynamic memory management, and both DIET and X86_REDUCE
modes are disabled. To use your own memory allocations, turn ON both DIET &
X86_REDUCE, run "cmake" with: `-DCAPSTONE_USE_SYS_DYN_MEM=0`, `-DCAPSTONE_BUILD_DIET=1`, `-DCAPSTONE_X86_REDUCE=1`
### Developer specific options
-`CAPSTONE_DEBUG`: Change this to ON to enable extra debug assertions. Automatically enabled with `Debug` build.
-`CAPSTONE_BUILD_CSTEST`: Build `cstest` in `suite/cstest/`. **Note:**`cstest` requires `libyaml` on your system. It attempts to build it from source otherwise.
-`CMAKE_EXPORT_COMPILE_COMMANDS`: To export `compile_commands.json` for `clangd` and other language servers.
-`ENABLE_ASAN`: Compiles Capstone with the address sanitizer.
-`ENABLE_COVERAGE`: Generate coverage files.
-`CAPSTONE_BUILD_LEGACY_TESTS`: Build some legacy integration tests.