Re: [CMake] add_custom_command() OUTPUT does not accept generator expressions, why?

2016-03-31 Thread Yves Frederix
Hi Brad, > > If anyone is interested in trying to implement generator expressions > for custom command outputs, I can provide more details to get started. I am interested in having a go at this. I recently ran into this issue at work as well and actually tried some things already. However, I real

Re: [CMake] add_custom_command() OUTPUT does not accept generator expressions, why?

2016-03-31 Thread Dan Liew
Hi, On 28 March 2016 at 15:05, Brad King wrote: > On 03/27/2016 06:11 AM, Dan Liew wrote: >> OUTPUT does not accept generator expressions, why? > > It hasn't been implemented. At least at one time it would have been > very hard to implement. I'm not sure now because there has been a lot > of re

Re: [CMake] add_custom_command() OUTPUT does not accept generator expressions, why?

2016-03-28 Thread Brad King
On 03/27/2016 06:11 AM, Dan Liew wrote: > OUTPUT does not accept generator expressions, why? It hasn't been implemented. At least at one time it would have been very hard to implement. I'm not sure now because there has been a lot of refactoring since I last looked at it. There is some discussi

[CMake] add_custom_command() OUTPUT does not accept generator expressions, why?

2016-03-27 Thread Dan Liew
Hi, I tried writing a add_custom_command statement that will output the generated file into the same directory as another target ``` set(OUTPUT_NAME "$/MyThing.dll") add_custom_command(OUTPUT "${OUTPUT_NAME}" COMMAND "csc.exe" "/output:$" "MySource.cs" ) ``` This doesn't work. CMake emits thi