[CMake] Figuring out in a generator expression whether a name is a target

2015-12-11 Thread Attila Krasznahorkay
Dear All, I'm trying to do something a bit more complicated, so please bear with me... In our project we use a special kind of source code generator. Called a "dictionary generator". (https://root.cern.ch/how/how-use-reflex) To simplify the life of our users a bit, we provide a helper function

Re: [CMake] Figuring out in a generator expression whether a name is a target

2015-12-11 Thread Attila Krasznahorkay
Hi, Just to let people know how I solved it in the end... After wondering for a little while, I realised that the following should actually work more robustly: # Get the interface directories of the linked libraries: if( ARG_LINK_LIBRARIES ) # First declare an interface library