Re: [cmake-developers] source_group and generator expressions

2017-05-16 Thread Sebastian Holtermann
>> Would TARGETNAME_autogen/moc_compilation_$.cpp work with the >> current state of VS and XCode? The file name is pretty much unique. > > Yes, though some work would still be needed to add the right exclusion > code to Xcode. Good, I'll stick with that name then. For the rcc generated files the

Re: [cmake-developers] source_group and generator expressions

2017-05-16 Thread Brad King
On 05/16/2017 10:18 AM, Sebastian Holtermann wrote: > I thought per configuration source were supported already :/. They are supported by Makefile and Ninja generators but not by others. > Would TARGETNAME_autogen/moc_compilation_$.cpp work with the > current state of VS and XCode? The file name

Re: [cmake-developers] source_group and generator expressions

2017-05-16 Thread Sebastian Holtermann
Am 16.05.2017 um 15:11 schrieb Brad King: > On 05/16/2017 05:52 AM, Sebastian Holtermann wrote: >> There are two ways to achieve this >> 1) Put TARGETNAME_autogen/$/moc_compilation.cpp >>into AUTOGEN_SOURCE_GROUP >>- Requires gen. exp. support in source_group >> >> 2) Manually replace $ f

Re: [cmake-developers] TargetLinkLibraries on OBJECT-libraries

2017-05-16 Thread Robert Maynard
Sorry the correct link is: https://gitlab.kitware.com/cmake/cmake/issues/14778 On Tue, May 16, 2017 at 9:16 AM, Patrick Boettcher < patrick.boettc...@posteo.de> wrote: > On Tue, 16 May 2017 08:46:16 -0400 > Robert Maynard wrote: > > > Hi, > > > > I recommend you follow > > https://gitlab.kitwa

Re: [cmake-developers] TargetLinkLibraries on OBJECT-libraries

2017-05-16 Thread Patrick Boettcher
On Tue, 16 May 2017 08:46:16 -0400 Robert Maynard wrote: > Hi, > > I recommend you follow > https://gitlab.kitware.com/vtk/vtk-m/merge_requests/741 and the > related merge requests for the current status of adding support for > exactly this. Are you sure this is the right link? I'm don't see an

Re: [cmake-developers] source_group and generator expressions

2017-05-16 Thread Brad King
On 05/16/2017 05:52 AM, Sebastian Holtermann wrote: > There are two ways to achieve this > 1) Put TARGETNAME_autogen/$/moc_compilation.cpp >into AUTOGEN_SOURCE_GROUP >- Requires gen. exp. support in source_group > > 2) Manually replace $ for all configurations and put all >variants int

Re: [cmake-developers] TargetLinkLibraries on OBJECT-libraries

2017-05-16 Thread Brad King
On 05/16/2017 05:16 AM, Patrick Boettcher wrote: > I'd like to use target_link_libraries() on an OBJECT-library > > I started looking into the code, except removing the check in > cmTargetLinkLibraries.cpp I didn't do much. And this does not make it > work. > > Before continuing I'd like to know

Re: [cmake-developers] TargetLinkLibraries on OBJECT-libraries

2017-05-16 Thread Robert Maynard
Hi, I recommend you follow https://gitlab.kitware.com/vtk/vtk-m/merge_requests/741 and the related merge requests for the current status of adding support for exactly this. On Tue, May 16, 2017 at 5:16 AM, Patrick Boettcher < patrick.boettc...@posteo.de> wrote: > Hi, > > I'd like to use target_l

[cmake-developers] source_group and generator expressions

2017-05-16 Thread Sebastian Holtermann
Hi, I'm working on a fix for https://gitlab.kitware.com/cmake/cmake/issues/16460 which requires putting a generator expression into a source group, namely $ The background is that TARGETNAME_autogen/$/moc_compilation.cpp (and others) should go into the source_group AUTOGEN_SOURCE_GROUP. There are

[cmake-developers] TargetLinkLibraries on OBJECT-libraries

2017-05-16 Thread Patrick Boettcher
Hi, I'd like to use target_link_libraries() on an OBJECT-library for the following reason: I'm creating an OBJECT-library which has quite some requirement regarding include-dirs, compile-options and -definitions. Which is why my CMakeLists.txt currently looks somehow like this: (runtime is an int