> add_library(test_lib STATIC $/generated_file.cpp)
> add_custom_command(OUTPUT $/generated_file.cpp
> ...)
>
> When we compute the output information like target file directory and
> target file name we need to also determine the linker language. For
> that we need the full list of source
On 04/06/2016 08:02 AM, Petr Kmoch wrote:
> On 6 April 2016 at 09:51, Yves Frederix wrote:
>> add_custom_target(test_target ALL SOURCES
>> $/generated_file.cpp)
Watch out for circular logic here. For example:
add_library(test_lib STATIC $/generated_file.cpp)
add_custom_command(OUTPUT
On 6 April 2016 at 09:51, Yves Frederix
wrote:
> [...]
> So, basically, a prerequisite for the above
> to work is that CMake behaves nicely for the following as well:
>
> add_library(test_lib STATIC existing_file_$.cpp)
>
> At this moment CMake supports generator
Hi Brad,
Thanks for the pointers. I played with this a bit over the last week,
mainly to get familiar with the CMake internals, and it seems that
there are some things that might need discussion before getting to a
solution. Note that all my experiments were done using the VS
generator.
What we
On 03/31/2016 07:26 AM, Yves Frederix wrote:
>> 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
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