Re: [cmake-developers] Target usage requirements and conventions

2012-05-17 Thread Stephen Kelly
Alexander Neundorf wrote: On Sunday 13 May 2012, Stephen Kelly wrote: Stephen Kelly wrote: Hi there, The topic of 'target usage requirements' has come up several times. It's something I'd like to work further towards in CMake 2.8.9. I have created a wiki page on the KDE wiki

Re: [cmake-developers] Target usage requirements and conventions

2012-05-17 Thread Brad King
On 05/17/2012 09:25 AM, Stephen Kelly wrote: $IF($CONFIGURATION MATCHES Debug AND $LANGUAGE STREQUALS CXX)... I'm not sure what should go in the ... part though. Some syntax to delimit the then/else values would be needed. I'm not sure else() and endif() are needed as additional

Re: [cmake-developers] Target usage requirements and conventions

2012-05-17 Thread Stephen Kelly
Brad King wrote: On 05/17/2012 09:25 AM, Stephen Kelly wrote: $IF($CONFIGURATION MATCHES Debug AND $LANGUAGE STREQUALS CXX)... I'm not sure what should go in the ... part though. Some syntax to delimit the then/else values would be needed. I'm not sure else() and endif() are needed

Re: [cmake-developers] Target usage requirements and conventions

2012-05-14 Thread Brad King
On 05/13/2012 05:50 PM, Stephen Kelly wrote: The remaining (I think) open question regards what form the generator expressions should take so that they can represent multiple dimensions. Multiple dimensions will inevitably need to be combined in arbitrary boolean expressions. I'm concerned

Re: [cmake-developers] Target usage requirements and conventions

2012-05-13 Thread Stephen Kelly
Stephen Kelly wrote: Hi there, The topic of 'target usage requirements' has come up several times. It's something I'd like to work further towards in CMake 2.8.9. I have created a wiki page on the KDE wiki (there for my convenience mostly) so that we can discuss the design,

Re: [cmake-developers] Target usage requirements and conventions

2012-05-06 Thread Alexander Neundorf
On Saturday 05 May 2012, Stephen Kelly wrote: Alexander Neundorf wrote: On Wednesday 02 May 2012, Stephen Kelly wrote: Brad King wrote: ... to mean find-if-necessary. Then arguments after Bar would be passed to the implied find_package for version and all the other options.

Re: [cmake-developers] Target usage requirements and conventions

2012-05-05 Thread Stephen Kelly
Alexander Neundorf wrote: On Wednesday 02 May 2012, Stephen Kelly wrote: Brad King wrote: ... to mean find-if-necessary. Then arguments after Bar would be passed to the implied find_package for version and all the other options. Either Module mode or Config mode could detect whether

Re: [cmake-developers] Target usage requirements and conventions

2012-05-05 Thread Stephen Kelly
Clinton Stimpson wrote: On Thursday, May 03, 2012 10:21:10 am Stephen Kelly wrote: On 05/03/2012 06:19 PM, Ben Boeckel wrote: On Thu, May 03, 2012 at 09:35:44 -0600, Clinton Stimpson wrote: The include, defines, etc... can be properties on a target when when target_use_target() is used,

Re: [cmake-developers] Target usage requirements and conventions

2012-05-05 Thread Stephen Kelly
Alexander Neundorf wrote: On Thursday 03 May 2012, Stephen Kelly wrote: Alexander Neundorf wrote: ... So, I don't see any need for automatically invoking find_package() from some other command. Calling find_package() is something people should be used to, it shouldn't be hard for them.

Re: [cmake-developers] Target usage requirements and conventions

2012-05-03 Thread Stephen Kelly
Alexander Neundorf wrote: On Tuesday 01 May 2012, Stephen Kelly wrote: Stephen Kelly wrote: This avoids the 'double booking' problem[1], which I think might be real, so I think it's a good idea to optimize the common case, but I won't be too disappointed if it's not acceptable. [1]

Re: [cmake-developers] Target usage requirements and conventions

2012-05-03 Thread Ben Boeckel
On Thu, May 03, 2012 at 09:35:44 -0600, Clinton Stimpson wrote: The include, defines, etc... can be properties on a target when when target_use_target() is used, it could extract those properties and apply them on the using target. So we'll also need a way to define private values for these

Re: [cmake-developers] Target usage requirements and conventions

2012-05-03 Thread Stephen Kelly
On 05/03/2012 06:19 PM, Ben Boeckel wrote: On Thu, May 03, 2012 at 09:35:44 -0600, Clinton Stimpson wrote: The include, defines, etc... can be properties on a target when when target_use_target() is used, it could extract those properties and apply them on the using target. So we'll also need

Re: [cmake-developers] Target usage requirements and conventions

2012-05-03 Thread Clinton Stimpson
On Thursday, May 03, 2012 10:21:10 am Stephen Kelly wrote: On 05/03/2012 06:19 PM, Ben Boeckel wrote: On Thu, May 03, 2012 at 09:35:44 -0600, Clinton Stimpson wrote: The include, defines, etc... can be properties on a target when when target_use_target() is used, it could extract those

Re: [cmake-developers] Target usage requirements and conventions

2012-05-03 Thread Alexander Neundorf
On Thursday 03 May 2012, Stephen Kelly wrote: Alexander Neundorf wrote: ... So, I don't see any need for automatically invoking find_package() from some other command. Calling find_package() is something people should be used to, it shouldn't be hard for them. Hiding it in some other

Re: [cmake-developers] Target usage requirements and conventions

2012-05-02 Thread Alexander Neundorf
On Tuesday 01 May 2012, Stephen Kelly wrote: Stephen Kelly wrote: This avoids the 'double booking' problem[1], which I think might be real, so I think it's a good idea to optimize the common case, but I won't be too disappointed if it's not acceptable. [1]

Re: [cmake-developers] Target usage requirements and conventions

2012-05-02 Thread Alexander Neundorf
On Wednesday 02 May 2012, Stephen Kelly wrote: Brad King wrote: ... to mean find-if-necessary. Then arguments after Bar would be passed to the implied find_package for version and all the other options. Either Module mode or Config mode could detect whether there is enough information

Re: [cmake-developers] Target usage requirements and conventions

2012-05-02 Thread David Cole
On Wed, May 2, 2012 at 1:18 PM, Alexander Neundorf neund...@kde.org wrote: On Wednesday 02 May 2012, Stephen Kelly wrote: Brad King wrote: ... to mean find-if-necessary.  Then arguments after Bar would be passed to the implied find_package for version and all the other options.  Either

Re: [cmake-developers] Target usage requirements and conventions

2012-05-02 Thread David Cole
On Wed, May 2, 2012 at 2:02 PM, Alexander Neundorf neund...@kde.org wrote: On Wednesday 02 May 2012, David Cole wrote: On Wed, May 2, 2012 at 1:18 PM, Alexander Neundorf neund...@kde.org wrote: On Wednesday 02 May 2012, Stephen Kelly wrote: ... I also think the 'Foo' would be redundant. It

Re: [cmake-developers] Target usage requirements and conventions

2012-05-01 Thread Alexander Neundorf
On Sunday 29 April 2012, Stephen Kelly wrote: Hi there, The topic of 'target usage requirements' has come up several times. It's something I'd like to work further towards in CMake 2.8.9. I have created a wiki page on the KDE wiki (there for my convenience mostly) so that we can discuss

Re: [cmake-developers] Target usage requirements and conventions

2012-05-01 Thread Stephen Kelly
Brad King wrote: On 4/29/2012 11:02 AM, Stephen Kelly wrote: The topic of 'target usage requirements' has come up several times. It's something I'd like to work further towards in CMake 2.8.9. I have created a wiki page on the KDE wiki (there for my convenience mostly) so that we can

Re: [cmake-developers] Target usage requirements and conventions

2012-05-01 Thread Stephen Kelly
Stephen Kelly wrote: This avoids the 'double booking' problem[1], which I think might be real, so I think it's a good idea to optimize the common case, but I won't be too disappointed if it's not acceptable. [1] http://lists.qt-project.org/pipermail/development/2011- November/000258.html --

Re: [cmake-developers] Target usage requirements and conventions

2012-04-30 Thread Brad King
On 4/29/2012 11:02 AM, Stephen Kelly wrote: The topic of 'target usage requirements' has come up several times. It's something I'd like to work further towards in CMake 2.8.9. I have created a wiki page on the KDE wiki (there for my convenience mostly) so that we can discuss the design,

[cmake-developers] Target usage requirements and conventions

2012-04-29 Thread Stephen Kelly
Hi there, The topic of 'target usage requirements' has come up several times. It's something I'd like to work further towards in CMake 2.8.9. I have created a wiki page on the KDE wiki (there for my convenience mostly) so that we can discuss the design, implementation and implications.