[cmake-developers] Should compile/link options be user-ordered?

Brad King brad.king at kitware.com
Mon Feb 3 14:32:39 EST 2014


On 02/02/2014 04:12 PM, Stephen Kelly wrote:
> I was investigating the fact that target_compile_options accepts a BEFORE 
> keyword. The keyword is ignored, by the command implementation, but could be 
> used by cmTarget. Should it be? Is the bug in target_compile_options 
> accepting the option, or in ignoring it? 
> 
> The same question applies to the upcoming target_link_options.

Weren't you the author of the command?

It looks like that may have been copied from the include_directories
command.  Does the implementation actually honor "BEFORE" anywhere?

This should just be the order within the COMPILE_OPTIONS property
which shouldn't be too hard to implement.

-Brad




More information about the cmake-developers mailing list