Генерирую makefile с помощью cmake. Флаги компиляции задаю в CMAKE_C_FLAGS. Хочу только один из файлов компилировать с другими флагами. Как сообщить об этом cmake?
Смотреть раздел Properties on Source Files в документе cmake-properties.html:
COMPILE_FLAGS: Additional flags to be added when compiling this source file. These flags will be added to the list of compile flags when this source file builds. Use COMPILE_DEFINITIONS to pass additional preprocessor definitions.