Getting the real include directories for frameworks?
Alexander Richardson
arichardson.kde at gmail.com
Fri Apr 3 11:50:27 BST 2015
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>>")
Alex
More information about the kde-core-devel
mailing list