Re: [CMake] debug/optimized include directories

2011-11-07 Thread Alexander Neundorf
On Friday 04 November 2011, David Cole wrote: On Wed, Nov 2, 2011 at 8:30 PM, Stephen Kelly steve...@gmail.com wrote: David Cole wrote: On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Nov 1, 2011 at 3:32 PM, David Cole david.c...@kitware.com wrote:

Re: [CMake] debug/optimized include directories

2011-11-07 Thread Robert Dailey
How would it not be additive? get_target_property() for INCLUDE_DIRECTORIES would return target includes + directory includes (that apply to that target, transitively) I don't know if preprocessor definitions follow this but this is the behavior I would expect. - Robert Dailey On Mon,

Re: [CMake] debug/optimized include directories

2011-11-07 Thread David Cole
I think the main use case for saying non-additive would be useful is: Having several targets in a given directory, most of which simply use the directory's property value, which contains several include directories. Now... have one target where you want to restrict the include_directories to a

Re: [CMake] debug/optimized include directories

2011-11-07 Thread Michael Hertling
On 11/06/2011 09:27 AM, Michael Wild wrote: On 11/05/2011 09:59 PM, Michael Hertling wrote: On 11/02/2011 05:36 PM, Michael Wild wrote: Thanks ;-) Michael Just an additional remark: Instead of generating the proxy headers in CMakeLists.txt, i.e. at configuration time, one might also have

Re: [CMake] debug/optimized include directories

2011-11-06 Thread Michael Wild
On 11/05/2011 09:59 PM, Michael Hertling wrote: On 11/02/2011 05:36 PM, Michael Wild wrote: Thanks ;-) Michael Just an additional remark: Instead of generating the proxy headers in CMakeLists.txt, i.e. at configuration time, one might also have them generated by a custom command, i.e. at

Re: [CMake] debug/optimized include directories

2011-11-06 Thread Alexander Neundorf
On Friday 04 November 2011, David Cole wrote: On Fri, Nov 4, 2011 at 12:23 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: ... Looks like the first step to assigning include directories to libraries, so they are used automatically when linking against them. Is this also already in

Re: [CMake] debug/optimized include directories

2011-11-05 Thread Michael Hertling
On 11/02/2011 05:36 PM, Michael Wild wrote: Thanks ;-) Michael Just an additional remark: Instead of generating the proxy headers in CMakeLists.txt, i.e. at configuration time, one might also have them generated by a custom command, i.e. at build time, which has the $CONFIGURATION expression

Re: [CMake] debug/optimized include directories

2011-11-04 Thread David Cole
On Wed, Nov 2, 2011 at 8:30 PM, Stephen Kelly steve...@gmail.com wrote: David Cole wrote: On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Nov 1, 2011 at 3:32 PM, David Cole david.c...@kitware.com wrote: Not yet Meaning there are plans in the works to add

Re: [CMake] debug/optimized include directories

2011-11-04 Thread Robert Dailey
David, There is a directory-level property for preprocessor definitions too, right? So how do the target properties for preprocessor definitions handle those? I think they are additive aren't they? I would expect the include directories to be additive too. - Robert Dailey On Fri, Nov

Re: [CMake] debug/optimized include directories

2011-11-04 Thread Marcus D. Hanwell
On Fri, Nov 4, 2011 at 11:16 AM, Robert Dailey rcdai...@gmail.com wrote: David, There is a directory-level property for preprocessor definitions too, right? So how do the target properties for preprocessor definitions handle those? I think they are additive aren't they? I would expect the

Re: [CMake] debug/optimized include directories

2011-11-04 Thread Alexander Neundorf
On Friday 04 November 2011, David Cole wrote: On Wed, Nov 2, 2011 at 8:30 PM, Stephen Kelly steve...@gmail.com wrote: David Cole wrote: On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Nov 1, 2011 at 3:32 PM, David Cole david.c...@kitware.com wrote:

Re: [CMake] debug/optimized include directories

2011-11-04 Thread David Cole
On Fri, Nov 4, 2011 at 12:23 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Friday 04 November 2011, David Cole wrote: On Wed, Nov 2, 2011 at 8:30 PM, Stephen Kelly steve...@gmail.com wrote: David Cole wrote: On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey rcdai...@gmail.com

Re: [CMake] debug/optimized include directories

2011-11-03 Thread Robert Dailey
Thanks for volunteering for this! - Robert Dailey On Wed, Nov 2, 2011 at 7:30 PM, Stephen Kelly steve...@gmail.com wrote: David Cole wrote: On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Nov 1, 2011 at 3:32 PM, David Cole

Re: [CMake] debug/optimized include directories

2011-11-02 Thread Robert Dailey
Awesome idea, +1 This is probably the best work-around until includes get a target property. - Robert Dailey On Wed, Nov 2, 2011 at 2:43 AM, Michael Wild them...@gmail.com wrote: On 11/01/2011 09:49 PM, Robert Dailey wrote: Well if you need any help coding the feature let me know.

Re: [CMake] debug/optimized include directories

2011-11-02 Thread Michael Wild
Thanks ;-) Michael On 11/02/2011 05:33 PM, Robert Dailey wrote: Awesome idea, +1 This is probably the best work-around until includes get a target property. - Robert Dailey On Wed, Nov 2, 2011 at 2:43 AM, Michael Wild them...@gmail.com mailto:them...@gmail.com wrote:

Re: [CMake] debug/optimized include directories

2011-11-02 Thread Stephen Kelly
David Cole wrote: On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Nov 1, 2011 at 3:32 PM, David Cole david.c...@kitware.com wrote: Not yet Meaning there are plans in the works to add such functionality in the near future? For now I guess I could actually

Re: [CMake] debug/optimized include directories

2011-11-01 Thread David Cole
Not yet On Tue, Nov 1, 2011 at 4:30 PM, Robert Dailey rcdai...@gmail.com wrote: When generating for Visual Studio, is there a way to make projects in debug configuration have a different set of include directories from the release configuration? - Robert Dailey -- Powered by

Re: [CMake] debug/optimized include directories

2011-11-01 Thread Robert Dailey
On Tue, Nov 1, 2011 at 3:32 PM, David Cole david.c...@kitware.com wrote: Not yet Meaning there are plans in the works to add such functionality in the near future? For now I guess I could actually hard code VS environment variables in my include directory strings, such as $(Configuration). --

Re: [CMake] debug/optimized include directories

2011-11-01 Thread David Cole
On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey rcdai...@gmail.com wrote: On Tue, Nov 1, 2011 at 3:32 PM, David Cole david.c...@kitware.com wrote: Not yet Meaning there are plans in the works to add such functionality in the near future? For now I guess I could actually hard code VS

Re: [CMake] debug/optimized include directories

2011-11-01 Thread Robert Dailey
Well if you need any help coding the feature let me know. I'm already liking the idea of adding features I want myself into CMake :) Thanks! - Robert Dailey On Tue, Nov 1, 2011 at 3:47 PM, David Cole david.c...@kitware.com wrote: On Tue, Nov 1, 2011 at 4:33 PM, Robert Dailey