[CMake] add_definitions verus set_source_files_properties

Michael Wild themiwi at gmail.com
Wed Jun 1 15:58:25 EDT 2011


On 06/01/2011 09:27 PM, Benjamin Peterson wrote:
> Michael Wild <themiwi at ...> writes:
> 
>> Yes, it is considered to be bad practice. If you want the same behavior,
>> though, use set_directory_properties().
> 
> But there's no COMPILE_FLAGS property on directories, is there?
> 

Ooops, sorry. Just append to the CMAKE_<LANG>_FLAGS variable. Remember,
that this one is space-separated.

Michael


More information about the CMake mailing list