Mixing C and assembly sources and build with cmake

前端 未结 2 727
囚心锁ツ
囚心锁ツ 2021-01-31 18:28

I\'m using eclipse for building a avr-gcc project that mixes assembly code and C source files. I want to get rid of the automatic makefile generation of eclipse because I need t

2条回答
  •  無奈伤痛
    2021-01-31 18:53

    Based on your solution, one of the simplest solutions is this one-liner:

    SET(CMAKE_ASM_FLAGS "${CFLAGS} -x assembler-with-cpp")
    

提交回复
热议问题