vivi
vivi

Reputation: 21

How to pass more than one value to a variable through EXTRA_OECMAKE from a bitbake recipe?

I need to pass a variable to from my bitbake (.bb) recipe to cmake. I know I can do that by EXTRA_OECMAKE. This what I have in my recipe:

EXTRA_OECMAKE = "-Deigen_INCLUDE_DIRS:PATH=${STAGING_INCDIR}/eigen3"

But I want the variable eigen_INCLUDE_DIRS to have more than one value. I tried separating the values with a semicolon:

EXTRA_OECMAKE = "-Deigen_INCLUDE_DIRS:PATH=${STAGING_INCDIR}/eigen3;${B};${WORKDIR}/${BP}/third_party/eigen3"

and also and a single quote:

EXTRA_OECMAKE = "-Deigen_INCLUDE_DIRS:PATH='${STAGING_INCDIR}/eigen3' '${B}' '${WORKDIR}/${BP}/third_party/eigen3'"

But both of them do not work. How can I append more values to the variable?

Upvotes: 0

Views: 1756

Answers (1)

Ross Burton
Ross Burton

Reputation: 4063

This is not related to bitbake/OE but entirely down to how the eigen cmake module works. I'd ask the eigen maintainers what value they're expecting.

Upvotes: 1

Related Questions