Re: [CMake] Getting the source file list for an executable fails

2011-09-18 Thread Michael Hertling
On 09/17/2011 03:01 PM, Campbell Barton wrote: > On Sat, Sep 17, 2011 at 10:36 AM, Michael Hertling > wrote: >> On 09/16/2011 03:24 AM, Campbell Barton wrote: >>> On Fri, Sep 16, 2011 at 11:11 AM, Michael Hertling >>> wrote: On 09/16/2011 02:59 AM, Campbell Barton wrote: > Hi, I would

Re: [CMake] Getting the source file list for an executable fails

2011-09-17 Thread Campbell Barton
On Sat, Sep 17, 2011 at 10:36 AM, Michael Hertling wrote: > On 09/16/2011 03:24 AM, Campbell Barton wrote: >> On Fri, Sep 16, 2011 at 11:11 AM, Michael Hertling >> wrote: >>> On 09/16/2011 02:59 AM, Campbell Barton wrote: Hi, I would expect this would work from reading the docs but it gives

Re: [CMake] Getting the source file list for an executable fails

2011-09-16 Thread Michael Hertling
On 09/16/2011 03:24 AM, Campbell Barton wrote: > On Fri, Sep 16, 2011 at 11:11 AM, Michael Hertling > wrote: >> On 09/16/2011 02:59 AM, Campbell Barton wrote: >>> Hi, I would expect this would work from reading the docs but it gives >>> >>> add_executable(mytarget ${SRC}) >>> get_prop

Re: [CMake] Getting the source file list for an executable fails

2011-09-15 Thread Campbell Barton
On Fri, Sep 16, 2011 at 11:11 AM, Michael Hertling wrote: > On 09/16/2011 02:59 AM, Campbell Barton wrote: >> Hi, I would expect this would work from reading the docs but it gives >> >>       add_executable(mytarget ${SRC}) >>       get_property(TESTPROP_A TARGET mytarget PROPERTY SOURCE) >>      

Re: [CMake] Getting the source file list for an executable fails

2011-09-15 Thread Michael Hertling
On 09/16/2011 02:59 AM, Campbell Barton wrote: > Hi, I would expect this would work from reading the docs but it gives > > add_executable(mytarget ${SRC}) > get_property(TESTPROP_A TARGET mytarget PROPERTY SOURCE) > get_target_property(TESTPROP_B mytarget SOURCE) > messag

[CMake] Getting the source file list for an executable fails

2011-09-15 Thread Campbell Barton
Hi, I would expect this would work from reading the docs but it gives add_executable(mytarget ${SRC}) get_property(TESTPROP_A TARGET mytarget PROPERTY SOURCE) get_target_property(TESTPROP_B mytarget SOURCE) message(FATAL_ERROR "Testing ${TESTPROP_A}, ${TESTPROP_B}")