LINUX.ORG.RU

Смотреть раздел 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.

Использовать так:

set_property( SOURCE mysourcefile.cpp PROPERTY COMPILE_FLAGS "-Wall" )

Dendy ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.