Problem using Vc with CMake 3.0 and kf5

Alex Merry alex.merry at kde.org
Mon May 25 12:02:54 UTC 2015


On Monday 25 May 2015 13:50:08 Boudewijn Rempt wrote:
> On Mon, 25 May 2015, Alex Merry wrote:
> > Ah, yes. You may get somewhere with
> > include_directories($<JOIN:${KDE4_INCLUDES}, -I>)
> > 
> > Basically, this should replace all those semicolons in the generated
> > output
> > with " -I", which should produce a correct command line. This is untested,
> > though.
> 
> Hm... No luck here. This outputs an error on running cmake:
> 
>      CMake Error in libs/pigment/CMakeLists.txt:
>        Found relative path while evaluating include directories of
> "pigmentcms":
> 
>          "$<JOIN:$KDE4_INCLUDES},"

That looks like a combination of me missing some quotes and you missing the 
opening { of the variable. Try:

include_directories("$<JOIN:${KDE4_INCLUDES}, -I>")

Alex


More information about the Kde-buildsystem mailing list