cmake asm flag
时间: 2023-10-22 08:24:14 浏览: 178
cmake
CMake does not have a specific flag for assembling code. However, you can use the CMAKE_ASM_FLAGS variable to specify flags for the assembler. Here's an example:
```cmake
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -your-flags-here")
```
Replace `-your-flags-here` with the flags you want to pass to the assembler. The `CMAKE_ASM_FLAGS` variable can be set globally in the CMakeLists.txt file or locally in a specific target's CMakeLists.txt file using the `set_target_properties` command.
阅读全文