Re: [CMake] granular preprocessor defiitions

2012-04-05 Thread Christoph Anton Mitterer
Hi Brad. Tanks for your insights :) add_definitions is the original interface and uses -D in its syntax for historical reasons. The earliest quick-and-dirty implementation allowed arbitrary flags so people started abusing it. Then we had to support such projects for compatibility. I

Re: [CMake] granular preprocessor defiitions

2012-04-04 Thread Brad King
On 4/3/2012 9:33 PM, Christoph Anton Mitterer wrote: Actually what I'd prefer most if add_definitions (and perhaps even include_directories) could be set in a per file context[0]. add_definitions is the original interface and uses -D in its syntax for historical reasons. The earliest