Re: [CMake] LOCATION target property, generator expressions

2018-09-25 Thread Marc CHEVRIER
LINK_FLAGS does not support expressions. However, property LINK_OPTIONS (and INTERFACE counterpart) support generator expressions. These properties are new for version 3.13 which will be available soon (probably next month). Le mer. 26 sept. 2018 à 05:21, Hendrik Greving < hendrik.greving@gmail

[CMake] LOCATION target property, generator expressions

2018-09-25 Thread Hendrik Greving
Hello, our cmake setup is using LOCATION property for two targets to compute a relative path from these two, and adds this to LINK_FLAGS (for rpath, but irrelevant in this context). In order to update our cmake w.r.t. CMP0026, I don't know how to get LINK_FLAGS consume a generator expression. In o

[CMake] Moving static library to separate project

2018-09-25 Thread Christopher E Robison
I've got a situation I've searched for answers on, and though I've found similar questions, I've found no generally-applicable answers, or at least ones I can use. Apologies in advance for a beginner-level question. I have a group of applications that all use some common functionality I've located

Re: [CMake] protobuf and imports relative to root (and --proto_path)

2018-09-25 Thread Alexander Neundorf
On 2018 M09 25, Tue 16:53:27 CEST David Jobet wrote: > > What I do have a problem is rerunning protoc automatically on proto-files > > which import proto files that have been modified. > > How do you handle this ? > > I just found out I don't. > Any idea on that one ? here are some suggestions: h

Re: [CMake] protobuf and imports relative to root (and --proto_path)

2018-09-25 Thread David Jobet
> What I do have a problem is rerunning protoc automatically on proto-files > which > import proto files that have been modified. > How do you handle this ? I just found out I don't. Any idea on that one ? Otherwise I'm going to create a small .proto parser (python) that will just list the impor