Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2016-01-03 Thread Klaim - Joël Lamotte
On 3 January 2016 at 10:18, Jakob van Bethlehem wrote: > Hej, > > Just re-read your question to make sure I understood, because I thought in > the project I currently work in we had those targets, but not the problems. > So I checked and realised we actually gotten rid of those INTERFACE > librar

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2016-01-03 Thread Jakob van Bethlehem
Hej, Just re-read your question to make sure I understood, because I thought in the project I currently work in we had those targets, but not the problems. So I checked and realised we actually gotten rid of those INTERFACE libraries, because we encountered all kinds of trouble, amongst which o

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2016-01-02 Thread Klaim - Joël Lamotte
On 1 January 2016 at 11:00, Jakob van Bethlehem wrote: > Hej Joël, > > The command you’re looking for is ‘source_group’, see > https://cmake.org/cmake/help/v3.0/command/source_group.html > > I use this already but it works only with source files, not with targets. With targets you need to set the

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2016-01-02 Thread Klaim - Joël Lamotte
On 31 December 2015 at 17:19, Nils Gladitz wrote: > On 31.12.2015 14:19, David Cole via CMake wrote: > >> I can't think of a reason why we would not whitelist the FOLDER >> property... Unless somebody else chimes in with one, perhaps you could >> submit a proposed patch to whitelist it? >> > > As

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2016-01-01 Thread Jakob van Bethlehem
Hej Joël, The command you’re looking for is ‘source_group’, see https://cmake.org/cmake/help/v3.0/command/source_group.html Sincerely, Jakob > On 30 Dec 2015, at 20:52, Klaim - Joël Lamotte wrote: > > The following CMake script:

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2015-12-31 Thread Nils Gladitz
On 31.12.2015 14:19, David Cole via CMake wrote: I can't think of a reason why we would not whitelist the FOLDER property... Unless somebody else chimes in with one, perhaps you could submit a proposed patch to whitelist it? As far as I remember INTERFACE libraries don't generate visual studio

Re: [CMake] Cannot set FOLDER property to an interface (header-only) target

2015-12-31 Thread David Cole via CMake
I can't think of a reason why we would not whitelist the FOLDER property... Unless somebody else chimes in with one, perhaps you could submit a proposed patch to whitelist it? D On Wednesday, December 30, 2015, Klaim - Joël Lamotte wrote: > The following CMake script: > > cmake_minimum_re

[CMake] Cannot set FOLDER property to an interface (header-only) target

2015-12-30 Thread Klaim - Joël Lamotte
The following CMake script: cmake_minimum_required(VERSION 3.4) add_library( mylib INTERFACE ) set_property( TARGET mylib PROPERTY FOLDER /some/dir ) Will trigger this error on configuration: CMake Error at CMakeLists.txt:4 (set_property): INTERFACE_LIBRARY targets may on