Re: [CMake] Alias of imported target

2015-05-14 Thread Stephen Kelly
Ruslan Baratov via CMake wrote: It may be helpful in situations when you build package with examples. In case when you want examples to work both as a part of a project (add_subdirectory) or stand-alone (find_package). I expect external_project may lead to more readability for this case,

Re: [CMake] Alias of imported target

2015-05-07 Thread Ruslan Baratov via CMake
On 05-May-15 20:01, Stephen Kelly wrote: CHEVRIER, Marc wrote: Hi, Currently it is not possible to create an alias target for an imported target (I.e. add_library with ALIAS keyword). But I don’t understand what is the technical constraint or semantic reason behind this limitation. If anybody

Re: [CMake] Alias of imported target

2015-05-06 Thread CHEVRIER, Marc
My need is the following: I have two imported targets, let say, IMPORTED::TARGET and IMPORTED::STATIC::TARGET And I have a project which can be customised, through an option, by selecting which imported target will be used (shared or static). So I tried, at first place: if

Re: [CMake] Alias of imported target

2015-05-05 Thread Stephen Kelly
CHEVRIER, Marc wrote: Hi, Currently it is not possible to create an alias target for an imported target (I.e. add_library with ALIAS keyword). But I don’t understand what is the technical constraint or semantic reason behind this limitation. If anybody can explain this limitation, it

[CMake] Alias of imported target

2015-05-05 Thread CHEVRIER, Marc
Hi, Currently it is not possible to create an alias target for an imported target (I.e. add_library with ALIAS keyword). But I don’t understand what is the technical constraint or semantic reason behind this limitation. If anybody can explain this limitation, it will be nice. -- Powered by