I just received help on IRC.<br><br>The solution is to use an <span style="line-height:19.7999992370605px">INTERFACE target and </span>INTERFACE_LINK_LIBRARIES (and NOT LINK_INTERFACE_LIBRARIES).<br><div><br></div><div>Hauke</div><br><div class="gmail_quote">On Wed Nov 19 2014 at 2:26:54 PM Hauke Heibel <<a href="mailto:hauke.heibel@gmail.com">hauke.heibel@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi,</div><div><br></div><div>I would like to declare an imported target which uses a header only library and which has some further link dependencies. If need be, I can specify a use case for this.</div><div><br></div><div>I thought I could simply declare this target as</div><div><br></div><div>add_library(Foo::Foo UNKNOWN IMPORTED)</div><div><br></div><div>and then configure its dependencies via the target property IMPORTED_LOCATION.</div><div><br></div><div>This used to work in 3.0.2, since it allowed me to specify multiple libraries separated by a semicolon (see here <a href="http://pastebin.com/Y1SYJFHh" target="_blank">http://pastebin.com/Y1SYJFHh</a>) but int 3.1-rc2 this semicolon is escaped to/replace by %3B. I was told that happens since there should only ever be a single entity specified by "IMPORTED_LOCATION".</div><div><br></div><div>So I got the suggestion to use LINK_INTERFACE_LIBRARIES instead. When linking against such a target via target_link_libraries(Bar Foo::Foo) without specifying the IMPORTED_LOCATION property, I get Foo::Foo-NOTFOUND in my linker dependencies.</div><div><br></div><div>The thing is I cannot specify IMPORTED_LOCATION, since there is really none. I could use my first library dependency to fake one but that does not sound right.</div><div><br></div><div>I also cannot define my imported library as an INTERFACE target because for these, LINK_INTERFACE_LIBRARIES is not supported.</div><div><br></div><div>Is there any way to achieve the declaration of such a target in 3.1?</div><div><br></div><div>Regards,</div><div>Hauke</div></blockquote></div>