Getting the real include directories for frameworks?

Boudewijn Rempt boud at valdyas.org
Fri Apr 3 13:22:35 BST 2015



On Fri, 3 Apr 2015, Boudewijn Rempt wrote:

> On Fri, 3 Apr 2015, Alexander Richardson wrote:
>
>> 2015-04-03 10:08 GMT+02:00 Boudewijn Rempt <boud at valdyas.org>:
>>> I've got a problem porting calligra to kf5 that I don't know how to solve.
>>>
>>> We use a 3rd party library called Vc, which does vectorization for us. It
>>> takes a certain object file and builds it for different processor
>>> architecturres. In order to do that, it generates a new gcc line for every
>>> architecture, using the value of INCLUDE_DIRECTORIES, like this:
>>>
>>>    get_directory_property(_inc INCLUDE_DIRECTORIES)
>>>    foreach(_i ${_inc})
>>>       list(APPEND _flags "-I${_i}")
>>>    endforeach()
>>>
>>
>> I haven't tested this, but according to the CMake documentation
>> 
> (http://www.cmake.org/cmake/help/v3.2/manual/cmake-generator-expressions.7.html)
>> this strange construction will probably work:
>>
>> list(APPEND _flags "$<$<BOOL:${_i}>:-I$<JOIN:${_i}, -I>>")
>>
>
> I'll give that a try -- since Vc is a 3rd party library I'll have to do
> that in our own code, of course.
>

Weird, I must be doing something wrong because even if I use that in the 
vc macro (which I shouldn't of course), it doesn't seem to make any 
difference. And even after reading the documentation page, I'm completely 
unsure about _why_ we'd need such expressions here.

Boudewijn



More information about the calligra-devel mailing list