ASM<DIALECT>FLAGS — CMake 3.27.7 Documentation

# ASM<DIALECT>FLAGS

This is a CMake Environment Variable. Its initial value is taken from the calling process environment.

Add default compilation flags to be used when compiling a specific dialect of an assembly language. `ASM<DIALECT>FLAGS` can be one of:

- `ASMFLAGS`

- `ASM_NASMFLAGS`

- `ASM_MASMFLAGS`

- `ASM_MARMASMFLAGS`

- `ASM-ATTFLAGS`

CMake uses this environment variable value, in combination with its own builtin default flags for the toolchain, to initialize and store the `CMAKE_ASM<DIALECT>_FLAGS` cache entry. This occurs the first time a build tree is configured for language `ASM<DIALECT>`. For any configuration run (including the first), the environment variable will be ignored if the `CMAKE_ASM<DIALECT>_FLAGS` variable is already defined.

See also `CMAKE_ASM<DIALECT>_FLAGS_INIT`.