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
Based on your solution, one of the simplest solutions is this one-liner:
SET(CMAKE_ASM_FLAGS "${CFLAGS} -x assembler-with-cpp")